Package com.unblu.sdk.core.observable
Class ErrorData
java.lang.Object
com.unblu.sdk.core.observable.ErrorData
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
ConstructorDescriptionErrorData
(UnbluClientErrorType errorType, String message, String errorClassName, String additionalInfo) Constructs a new ErrorData instance with the specified error type and message. -
Method Summary
Modifier and TypeMethodDescriptionReturns the type of error.Returns the detailed message associated with the error.
-
Constructor Details
-
ErrorData
public ErrorData(UnbluClientErrorType errorType, String message, @Nullable String errorClassName, @Nullable String additionalInfo) 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 Details
-
getErrorType
Returns the type of error.- Returns:
- The error type, as defined in
UnbluClientErrorType
.
-
getMessage
Returns the detailed message associated with the error.- Returns:
- The error message.
-