Class 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 in UnbluClientErrorType.
        message - The detailed message associated with the error.
    • Method Detail

      • getMessage

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