Class 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.
      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.
      The error type, as defined in UnbluClientErrorType.
    • getMessage

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