oracle.dacf.util.errormanager
Class ErrorType
java.lang.Object
|
+--oracle.dacf.util.errormanager.ErrorType
- All Implemented Interfaces:
- ErrorAttribute
- Direct Known Subclasses:
- DacfType, StyleType
- public class ErrorType
- extends java.lang.Object
- implements ErrorAttribute
The ErrorType class provides the base methods for defining error types or categories.
This class defines two types of errors:
- ErrorType.ALL_TYPES - maps all error types.
- ErrorType.UNDEFINED - indicates an undefined error type.
Subclass ErrorType to define your own error types.
Constructor Summary |
protected |
ErrorType(java.lang.String type)
Protected constructor used to create an error type. |
Method Summary |
java.lang.String |
getLabel()
Returns the label used when displaying the type on the UI. |
java.lang.String |
toString()
Returns the string describing the type or category of the error. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ALL_TYPES
public static final ErrorType ALL_TYPES
- Used by filters to map all error types.
UNDEFINED
public static final ErrorType UNDEFINED
- Used to indicate an uncategorized error type.
_type
protected java.lang.String _type
ErrorType
protected ErrorType(java.lang.String type)
- Protected constructor used to create an error type.
- Parameters:
type
- name of the error type.
toString
public java.lang.String toString()
- Returns the string describing the type or category of the error.
- Specified by:
toString
in interface ErrorAttribute
- Overrides:
toString
in class java.lang.Object
- Returns:
- error type as a String.
getLabel
public java.lang.String getLabel()
- Returns the label used when displaying the type on the UI.
- Specified by:
getLabel
in interface ErrorAttribute
- Returns:
- the label displayed for this error type.