Class ErrorData

java.lang.Object
com.unblu.sdk.core.observable.ErrorData

public class ErrorData extends 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 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 in UnbluClientErrorType.
      message - The detailed message associated with the error.
  • Method Details

    • getErrorType

      public UnbluClientErrorType getErrorType()
      Returns the type of error.
      Returns:
      The error type, as defined in UnbluClientErrorType.
    • getMessage

      public String getMessage()
      Returns the detailed message associated with the error.
      Returns:
      The error message.