Package com.unblu.sdk.core.observable
Class ErrorData
- java.lang.Object
-
- com.unblu.sdk.core.observable.ErrorData
-
public class ErrorData extends java.lang.Object
Represents error information within the SDK. The class provides a structured way to handle errors by categorizing them according to predefined error types and delivering corresponding messages for more detailed information.
-
-
Constructor Summary
Constructors Constructor Description ErrorData(UnbluClientErrorType errorType, java.lang.String message)
Constructs a new ErrorData instance with the specified error type and message.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UnbluClientErrorType
getErrorType()
Returns the type of error.java.lang.String
getMessage()
Returns the detailed message associated with the error.
-
-
-
Constructor Detail
-
ErrorData
public ErrorData(UnbluClientErrorType errorType, java.lang.String message)
Constructs a new ErrorData instance with the specified error type and message.- Parameters:
errorType
- The type of error, as defined inUnbluClientErrorType
.message
- The detailed message associated with the error.
-
-
Method Detail
-
getErrorType
public UnbluClientErrorType getErrorType()
Returns the type of error.- Returns:
- The error type, as defined in
UnbluClientErrorType
.
-
getMessage
public java.lang.String getMessage()
Returns the detailed message associated with the error.- Returns:
- The error message.
-
-