1 23 24 package com.sun.enterprise.security.util; 25 26 import java.lang.*; 27 28 38 39 public class IASSecurityException extends Exception 40 { 41 private boolean noMsg; 42 43 49 public IASSecurityException(String msg) 50 { 51 super(msg); 52 noMsg=false; 53 } 54 55 56 64 public IASSecurityException(String msg, Throwable cause) 65 { 66 super(msg, cause); 67 noMsg=false; 68 } 69 70 71 78 public IASSecurityException(Throwable cause) 79 { 80 super(cause); 81 noMsg=true; 82 } 83 84 85 92 public String getMessage() 93 { 94 StringBuffer sb=new StringBuffer (); 95 sb.append(super.getMessage()); 96 Throwable cause=getCause(); 97 98 if (!noMsg && cause!=null) { 99 sb.append(" [Cause: "); 100 sb.append(cause.toString()); 101 sb.append("] "); 102 } 103 104 return sb.toString(); 105 } 106 107 108 109 110 } 111 | Popular Tags |