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