Class TokenCreationException

  • All Implemented Interfaces:
    Serializable

    public class TokenCreationException
    extends ServiceException
    The TokenCreationException exception is thrown to indicate an error condition when creating an OAuth2 token.

    This is a checked exception to prevent the automatic rollback of the current transaction.

    Author:
    Marcus Portmann
    See Also:
    Serialized Form
    • Constructor Detail

      • TokenCreationException

        public TokenCreationException​(String message)
        Constructs a new TokenCreationException with the specified message.
        Parameters:
        message - The message saved for later retrieval by the getMessage() method.
      • TokenCreationException

        public TokenCreationException​(String message,
                                      Throwable cause)
        Constructs a new TokenCreationException with the specified message and cause.
        Parameters:
        message - The message saved for later retrieval by the getMessage() method.
        cause - The cause saved for later retrieval by the getCause() method. (A null value is permitted if the cause is nonexistent or unknown)