|
Oracle Fusion Middleware Java API Reference for Oracle Web Services Manager 11g (11.1.1) E10689-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.wsm.policy.validation.impl.ValidationError
public class ValidationError
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface oracle.wsm.policy.validation.IValidationError |
---|
IValidationError.VALIDATION_MSG_LEVEL_ENUM |
Field Summary |
---|
Fields inherited from interface oracle.wsm.policy.validation.IValidationError |
---|
GENERIC_ERROR_CODE, VALIDATION_MSG_LEVEL_ERROR, VALIDATION_MSG_LEVEL_WARNING |
Constructor Summary | |
---|---|
ValidationError(String errorCode) Generate Validation Error with only error code. |
|
ValidationError(String errorCode, String errorMessage) Generate Validation Error with error code and error message. |
|
ValidationError(String errorCode, String errorMessage, String errorContext) Generate Validation Error with error code, error message and error context. |
|
ValidationError(String errorCode, String errorMessage, String errorContext, IValidationError.VALIDATION_MSG_LEVEL_ENUM level) Generate Validation Error with error code, error message, error context and validation level. |
|
ValidationError(String errorCode, String errorMessage, String errorContext, Object[] errorMsgArgs) |
|
ValidationError(String errorCode, String errorMessage, String errorContext, String rbBundle) Generate Validation Error with error code, error message, error context and resource bundle. |
Method Summary | |
---|---|
String |
getErrorCode() return error code for this error Error Code is used for purposes of internationalization of error messages. |
String |
getErrorContext() Return the error context. |
IValidationError.VALIDATION_MSG_LEVEL_ENUM |
getErrorLevel() Return the level of the Error Message - supported levels are ERROR and WARNING |
String |
getErrorMessage() Get the error message. |
String |
getErrorMessage(Locale locale) Get the localized error message. |
ResourceBundle |
getResourceBundle(Locale locale) Get Resource Bundle Pass null to get the default resource bundle. |
int |
hashCode() |
void |
setErrorCode(String code) Set error code for this error Error Code is used for purposes of internationalization of error messages. |
void |
setErrorMessage(String message) Set the Validation Error Message. |
void |
setResourceBundle(String rbBundle) Set Resource Bundle |
String |
toString() |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ValidationError(String errorCode)
string
-public ValidationError(String errorCode, String errorMessage)
string
-string
-public ValidationError(String errorCode, String errorMessage, String errorContext, String rbBundle)
string
-string
-string
-string
- Resource Bundle namepublic ValidationError(String errorCode, String errorMessage, String errorContext)
string
- errorCode: ID defined in one of the xxxxMessageID.java file, must either belong/match the default resource bundle DEFAULT_RESOURCE_BUNDLE or resource bundle set by calling setResourceBundle() later on ValidationError created by this constructor.string
- errorMessage: optional, hard coded incase, errorCode can not be resolved to a localized message.string
-public ValidationError(String errorCode, String errorMessage, String errorContext, IValidationError.VALIDATION_MSG_LEVEL_ENUM level)
string
- errorCode: ID defined in one of the xxxxMessageID.java file, must either belong/match the default resource bundle DEFAULT_RESOURCE_BUNDLE or resource bundle set by calling setResourceBundle() later on ValidationError created by this constructor.string
- errorMessage, optional, hard coded incase, errorCode can not be resolved to a localized message.string
-VALIDATION_MSG_LEVEL_ENUM
-public ValidationError(String errorCode, String errorMessage, String errorContext, Object[] errorMsgArgs)
Method Detail |
---|
public String getErrorCode()
IValidationError
getErrorCode
in interface IValidationError
public void setErrorCode(String code)
IValidationError
setErrorCode
in interface IValidationError
public String getErrorContext()
IValidationError
getErrorContext
in interface IValidationError
public String getErrorMessage()
IValidationError
getErrorMessage
in interface IValidationError
public String getErrorMessage(Locale locale)
IValidationError
getErrorMessage
in interface IValidationError
public void setErrorMessage(String message)
setErrorMessage
in interface IValidationError
string
-public IValidationError.VALIDATION_MSG_LEVEL_ENUM getErrorLevel()
IValidationError
getErrorLevel
in interface IValidationError
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
public void setResourceBundle(String rbBundle)
IValidationError
setResourceBundle
in interface IValidationError
public ResourceBundle getResourceBundle(Locale locale)
IValidationError
getResourceBundle
in interface IValidationError
|
Oracle Fusion Middleware Java API Reference for Oracle Web Services Manager 11g (11.1.1) E10689-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |