Class EntitlementException

    • Constructor Detail

      • EntitlementException

        public EntitlementException​(int errorCode)
        Creates an entitlement exception.
        Parameters:
        errorCode - Error code.
      • EntitlementException

        public EntitlementException​(int errorCode,
                                    Object... params)
        Creates an entitlement exception.
        Parameters:
        errorCode - Error code.
        params - Parameters for formatting the message string.
      • EntitlementException

        public EntitlementException​(int errorCode,
                                    Throwable cause)
        Creates an entitlement exception.
        Parameters:
        errorCode - Error code.
        cause - Root cause.
      • EntitlementException

        public EntitlementException​(int errorCode,
                                    Object[] params,
                                    Throwable cause)
        Creates an entitlement exception.
        Parameters:
        errorCode - Error code.
        params - Parameters for formatting the message string.
        cause - Root cause.
      • EntitlementException

        public EntitlementException​(int errorCode,
                                    Throwable cause,
                                    Object... params)
    • Method Detail

      • getErrorCode

        public int getErrorCode()
        Returns error code.
        Returns:
        error code.
      • getMessage

        public String getMessage()
        Returns exception message.
        Overrides:
        getMessage in class Throwable
        Returns:
        exception message.
      • getLocalizedMessage

        public String getLocalizedMessage()
        Returns localized exception message.
        Overrides:
        getLocalizedMessage in class Throwable
        Returns:
        localized exception message.
      • getLocalizedMessage

        public String getLocalizedMessage​(Locale locale)
        Returns localized exception message using the errorCode as key.
        Parameters:
        locale - Locale of the message.
        Returns:
        localized exception message.