Class EACLsException

  • All Implemented Interfaces:
    java.io.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:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      EACLsException​(java.lang.String msgFormat)
      Constructs an acls exception.
      EACLsException​(java.lang.String msgFormat, java.lang.Exception param)
      Constructs a base exception.
      EACLsException​(java.lang.String msgFormat, java.lang.Object[] params)
      Constructs a base exception with a list of parameters that will be substituted into the message format.
      EACLsException​(java.lang.String msgFormat, java.lang.String param)
      Constructs a base exception with a parameter.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.String getBundleName()
      Return the class name of the resource bundle.
      java.lang.Object[] getParameters()
      Returns a list of parameters.
      java.lang.String toString()
      String representation for the corresponding exception.
      java.lang.String toString​(java.util.Locale locale)
      Returns string representation for the corresponding exception.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • EACLsException

        public EACLsException​(java.lang.String msgFormat)
        Constructs an acls exception.

        Parameters:
        msgFormat - exception details
      • EACLsException

        public EACLsException​(java.lang.String msgFormat,
                              java.lang.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​(java.lang.String msgFormat,
                              java.lang.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​(java.lang.String msgFormat,
                              java.lang.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 Detail

      • getParameters

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

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

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

        public java.lang.String toString​(java.util.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 java.lang.String getBundleName()
        Return the class name of the resource bundle.
        Overrides:
        getBundleName in class EBaseException
        Returns:
        class name of the resource bundle.