001/* 002 * jPOS Project [http://jpos.org] 003 * Copyright (C) 2000-2026 jPOS Software SRL 004 * 005 * This program is free software: you can redistribute it and/or modify 006 * it under the terms of the GNU Affero General Public License as 007 * published by the Free Software Foundation, either version 3 of the 008 * License, or (at your option) any later version. 009 * 010 * This program is distributed in the hope that it will be useful, 011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 013 * GNU Affero General Public License for more details. 014 * 015 * You should have received a copy of the GNU Affero General Public License 016 * along with this program. If not, see <http://www.gnu.org/licenses/>. 017 */ 018 019package org.jpos.security; 020 021import org.jpos.iso.ISOException; 022 023/** 024 * Signals that a Security Module exception of some sort has occurred. 025 * @author Hani S. Kirollos 026 * @version $Revision$ $Date$ 027 */ 028public class SMException extends ISOException { 029 030 private static final long serialVersionUID = 6419380899728561889L; 031 /** Nested security-module exception retained for legacy compatibility. */ 032 Exception nested = null; 033 034 /** Default constructor. */ 035 public SMException () { 036 super(); 037 } 038 039 /** 040 * Constructs a new exception with the given detail message. 041 * 042 * @param s failure description 043 */ 044 public SMException (String s) { 045 super(s); 046 } 047 048 /** 049 * Constructs a new exception wrapping the given cause. 050 * 051 * @param e underlying cause 052 */ 053 public SMException (Exception e) { 054 super(e); 055 } 056 057 /** 058 * Constructs a new exception with the given detail message and cause. 059 * 060 * @param s failure description 061 * @param e underlying cause 062 */ 063 public SMException (String s, Exception e) { 064 super(s, e); 065 } 066 067 /** 068 * put your documentation comment here 069 * @return tag name 070 */ 071 protected String getTagName () { 072 return "security-module-exception"; 073 } 074} 075 076 077