Class EACLsException

All Implemented Interfaces:
Serializable

public class EACLsException extends EBaseException
A class represents an acls exception. Note that this is an Runtime exception so that methods used AccessManager do not have to explicity declare this exception. This allows AccessManager to be easily integrated into any existing code.

Version:
$Revision$, $Date$
See Also:
  • Constructor Details

    • EACLsException

      public EACLsException(String msgFormat)
      Constructs an acls exception.

      Parameters:
      msgFormat - exception details
    • EACLsException

      public EACLsException(String msgFormat, String param)
      Constructs a base exception with a parameter. For example,
       new EACLsException("failed to load {0}", fileName);
       

      Parameters:
      msgFormat - exception details in message string format
      param - message string parameter
    • EACLsException

      public EACLsException(String msgFormat, Exception param)
      Constructs a base exception. It can be used to carry a system exception that may contain information about the context. For example,
                      try {
                      ...
                      } catch (IOExeption e) {
                              throw new EACLsException("Encountered System Error {0}", e);
            }
       

      Parameters:
      msgFormat - exception details in message string format
      param - system exception
    • EACLsException

      public EACLsException(String msgFormat, Object[] params)
      Constructs a base exception with a list of parameters that will be substituted into the message format.

      Parameters:
      msgFormat - exception details in message string format
      params - list of message format parameters
  • Method Details

    • getParameters

      public Object[] getParameters()
      Returns a list of parameters.

      Overrides:
      getParameters in class EBaseException
      Returns:
      list of message format parameters
    • toString

      public String toString()
      String representation for the corresponding exception.
      Overrides:
      toString in class EBaseException
      Returns:
      String representation for the corresponding exception.
    • toString

      public String toString(Locale locale)
      Returns string representation for the corresponding exception.
      Overrides:
      toString in class EBaseException
      Parameters:
      locale - client specified locale for string representation.
      Returns:
      String representation for the corresponding exception.
    • getBundleName

      protected String getBundleName()
      Return the class name of the resource bundle.
      Overrides:
      getBundleName in class EBaseException
      Returns:
      class name of the resource bundle.