org.brains2b.swingext.mask
Class MaskException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.brains2b.swingext.mask.MaskException
All Implemented Interfaces:
java.io.Serializable

public class MaskException
extends java.lang.Exception

Exception thrown by InputValidators and handled through the getErrorMessage() from org.brains2b.mask.InputValidator

Version:
0.20 [23-09-2003]
Author:
dennis@brains2b.nl
See Also:
Exception, InputValidator, Serialized Form

Field Summary
static int DOESNT_COMPLY
           
static int NOT_VALID_DATE
           
static int NOT_VALID_NUMBER
           
static int VALUE_TO_LARGE
           
 
Constructor Summary
MaskException()
          Constructor for MaskException.
MaskException(int errorNo)
           
MaskException(java.lang.String s)
          Constructor for MaskException.
 
Method Summary
 int getErrorNo()
          Returns the errorNo.
 java.lang.String getLocalizedMessage()
           
 java.lang.String getMessage()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

VALUE_TO_LARGE

public static final int VALUE_TO_LARGE
See Also:
Constant Field Values

NOT_VALID_NUMBER

public static final int NOT_VALID_NUMBER
See Also:
Constant Field Values

DOESNT_COMPLY

public static final int DOESNT_COMPLY
See Also:
Constant Field Values

NOT_VALID_DATE

public static final int NOT_VALID_DATE
See Also:
Constant Field Values
Constructor Detail

MaskException

public MaskException()
Constructor for MaskException.


MaskException

public MaskException(int errorNo)

MaskException

public MaskException(java.lang.String s)
Constructor for MaskException.

Parameters:
s - String, the message for the MaskException
Method Detail

getErrorNo

public int getErrorNo()
Returns the errorNo.

Returns:
int

getMessage

public java.lang.String getMessage()
Overrides:
getMessage in class java.lang.Throwable
See Also:
Throwable.getMessage()

getLocalizedMessage

public java.lang.String getLocalizedMessage()
Overrides:
getLocalizedMessage in class java.lang.Throwable
See Also:
Throwable.getLocalizedMessage()