001package com.nimbusds.jose.proc;
002
003
004/**
005 * Bad JSON Object Signing and Encryption (JOSE) exception.
006 *
007 * @author Vladimir Dzhuvinov
008 * @version 2015-06-10
009 */
010public class BadJOSEException extends Exception {
011
012
013        /**
014         * Creates a new bad JOSE exception.
015         *
016         * @param message The exception message.
017         */
018        public BadJOSEException(final String message) {
019
020                super(message);
021        }
022
023
024        /**
025         * Creates a new bad JOSE exception.
026         *
027         * @param message The exception message.
028         * @param cause   The exception cause.
029         */
030        public BadJOSEException(final String message, final Throwable cause) {
031
032                super(message, cause);
033        }
034}