FileDocCategorySizeDatePackage
IASSecurityException.javaAPI DocGlassfish v2 API3629Fri May 04 22:35:36 BST 2007com.sun.enterprise.security.util

IASSecurityException

public class IASSecurityException extends Exception
General exception class for iAS security failures.

This class takes advantage of the JDK1.4 Throwable objects which can carry the original cause of the exception. This prevents losing the information on what caused the problem to arise.

Ideally there should be common top level iAS Exceptions to extend.

Fields Summary
private boolean
noMsg
Constructors Summary
public IASSecurityException(String msg)
Constructor.

param
msg The detail message.

    super(msg);
    noMsg=false;
  
public IASSecurityException(String msg, Throwable cause)
Constructor.

param
msg The detail message.
param
cause The cause (which is saved for later retrieval by the getCause() method).

    super(msg, cause);
    noMsg=false;
  
public IASSecurityException(Throwable cause)
Constructor.

param
cause The cause (which is saved for later retrieval by the getCause() method).

    super(cause);
    noMsg=true;
  
Methods Summary
public java.lang.StringgetMessage()
Returns a description of this exception. If a root cause was included during construction, its message is also included.

return
Message containing information about the exception.

    StringBuffer sb=new StringBuffer();
    sb.append(super.getMessage());
    Throwable cause=getCause();

    if (!noMsg && cause!=null) {
      sb.append(" [Cause: ");
      sb.append(cause.toString());
      sb.append("] ");
    }

    return sb.toString();