Package org.openbravo.base.validation
Class ValidationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.openbravo.base.exception.OBException
-
- org.openbravo.base.validation.ValidationException
-
- All Implemented Interfaces:
Serializable
public class ValidationException extends OBException
Is thrown when an entity or property value is invalid. This Exception is not logged. Instead it allows messages to be added and stored byProperty
.- Author:
- mtaal
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ValidationException()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addMessage(Property p, String msg)
String
getMessage()
boolean
hasMessages()
-
Methods inherited from class org.openbravo.base.exception.OBException
getLogger, isLogExceptionNeeded
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
hasMessages
public boolean hasMessages()
-
getMessage
public String getMessage()
- Overrides:
getMessage
in classThrowable
-
-