Class CalendarDateParseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.eclipse.nebula.widgets.calendarcombo.CalendarDateParseException
- All Implemented Interfaces:
java.io.Serializable
public class CalendarDateParseException
extends java.lang.Exception
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description static int
TYPE_EXCEPTION
On normal Exceptionstatic int
TYPE_INSUFFICIENT_SPLITTERS
If expected date splitters and entered splitters are not the same in countstatic int
TYPE_NO_SLPITTER_CHAR
If entered date has no splitter characters in itstatic int
TYPE_UNABLE_TO_PARSE_MONTH
If month parsing failed.static int
TYPE_UNKNOWN_CALENDAR_TYPE
If a calendar type defined in the Java calendar (such as YYYY) does not compute. -
Constructor Summary
Constructors Constructor Description CalendarDateParseException(int type)
CalendarDateParseException(java.lang.String message, int type)
CalendarDateParseException(java.lang.String message, java.lang.Throwable cause, int type)
CalendarDateParseException(java.lang.Throwable cause, int type)
-
Method Summary
Modifier and Type Method Description int
getDateParseErrorType()
Returns the date parse error type.
-
Field Details
-
TYPE_NO_SLPITTER_CHAR
public static final int TYPE_NO_SLPITTER_CHARIf entered date has no splitter characters in it- See Also:
- Constant Field Values
-
TYPE_INSUFFICIENT_SPLITTERS
public static final int TYPE_INSUFFICIENT_SPLITTERSIf expected date splitters and entered splitters are not the same in count- See Also:
- Constant Field Values
-
TYPE_UNKNOWN_CALENDAR_TYPE
public static final int TYPE_UNKNOWN_CALENDAR_TYPEIf a calendar type defined in the Java calendar (such as YYYY) does not compute.- See Also:
- Constant Field Values
-
TYPE_UNABLE_TO_PARSE_MONTH
public static final int TYPE_UNABLE_TO_PARSE_MONTHIf month parsing failed.- See Also:
- Constant Field Values
-
TYPE_EXCEPTION
public static final int TYPE_EXCEPTIONOn normal Exception- See Also:
- Constant Field Values
-
-
Constructor Details
-
CalendarDateParseException
public CalendarDateParseException(int type) -
CalendarDateParseException
public CalendarDateParseException(java.lang.String message, java.lang.Throwable cause, int type) -
CalendarDateParseException
public CalendarDateParseException(java.lang.String message, int type) -
CalendarDateParseException
public CalendarDateParseException(java.lang.Throwable cause, int type)
-
-
Method Details
-
getDateParseErrorType
public int getDateParseErrorType()Returns the date parse error type. One ofTYPE_NO_SLPITTER_CHAR
,TYPE_INSUFFICIENT_SPLITTERS
,TYPE_UNKNOWN_CALENDAR_TYPE
and 4- Returns:
- date parse error type
-