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