Class Error<ErrorCode>

java.lang.Object
com.vivoka.vsdk.common.Error<ErrorCode>
Type Parameters:
ErrorCode - The type of the error code enum.

public class Error<ErrorCode> extends Object
Holds informations about an error.
  • Field Details

    • type

      public ErrorType type
      The type of the error can be either an error or a warning.
    • code

      public ErrorCode code
      The code of the error
    • codeString

      public String codeString
      The code string of the error
    • message

      public String message
      The message of the error
  • Constructor Details

    • Error

      public Error(ErrorType type, ErrorCode code, String codeString)
      Constructs a new error.
      Parameters:
      type - The type of the error
      code - The code of the error
      codeString - The code string of the error
    • Error

      public Error(ErrorType type, ErrorCode code, String codeString, String message)
      Constructs a new error.
      Parameters:
      type - The type of the error
      code - The code of the error
      codeString - The code string of the error
      message - The message of the error