Packagecom.ericfeminella.errors
Classpublic class AbstractException
InheritanceAbstractException Inheritance Error
SubclassesContextMenuItemCollisionException, ContextMenuItemInvalidCaptionException, ContextMenuMaximumItemsExceededError, NullPointerException

Pseudo-abstract base class which provides an API which allows sub-classes to pass a message containing tokens to be replaced with an arbitrary parameters

Below is an example of an AbstractException sub class


Example
     
     package 
     {
        public class SimpleError extends AbstractException
        {
            public static const MESSAGE:String = "Error {0}";
            
            public function SimpleError(detail:String){
                 super(SimpleError.MESSAGE, detail);
            }
     }
     

See also

mx.utils.StringUtil
Error


Public Methods
 MethodDefined by
  
AbstractException(message:String, ... args)
Constructs a new AbstractException instance and substitutes an error message with the specified arguments
AbstractException
Constructor detail
AbstractException()constructor
public function AbstractException(message:String, ... args)

Constructs a new AbstractException instance and substitutes an error message with the specified arguments

Parameters
message:String — message String associated with the error
 
... args — to replace tokens in error message