Class ValidationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.openhab.core.automation.parser.ValidationException
- All Implemented Interfaces:
Serializable
This is an
Exception
implementation for automation objects that retain some additional information.- Author:
- Arne Seime - Initial contribution
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionValidationException
(ValidationException.ObjectType type, @Nullable String uid, @Nullable String message) Creates a new instance with the specified type, UID and message.ValidationException
(ValidationException.ObjectType type, @Nullable String uid, @Nullable String message, @Nullable Throwable cause) Creates a new instance with the specified type, UID, message and cause.ValidationException
(ValidationException.ObjectType type, @Nullable String uid, @Nullable String message, @Nullable Throwable cause, boolean enableSuppression, boolean writableStackTrace) Creates a new instance with the specified type, UID, message and cause.ValidationException
(ValidationException.ObjectType type, @Nullable String uid, @Nullable Throwable cause) Creates a new instance with the specified type, UID and cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ValidationException
public ValidationException(ValidationException.ObjectType type, @Nullable String uid, @Nullable String message) Creates a new instance with the specified type, UID and message.- Parameters:
type
- theValidationException.ObjectType
to use.uid
- the UID to use, if any.message
- The detail message.
-
ValidationException
public ValidationException(ValidationException.ObjectType type, @Nullable String uid, @Nullable Throwable cause) Creates a new instance with the specified type, UID and cause.- Parameters:
type
- theValidationException.ObjectType
to use.uid
- the UID to use, if any.cause
- theThrowable
that caused thisException
.
-
ValidationException
public ValidationException(ValidationException.ObjectType type, @Nullable String uid, @Nullable String message, @Nullable Throwable cause) Creates a new instance with the specified type, UID, message and cause.- Parameters:
type
- theValidationException.ObjectType
to use.uid
- the UID to use, if any.message
- The detail message.cause
- theThrowable
that caused thisException
.
-
ValidationException
public ValidationException(ValidationException.ObjectType type, @Nullable String uid, @Nullable String message, @Nullable Throwable cause, boolean enableSuppression, boolean writableStackTrace) Creates a new instance with the specified type, UID, message and cause.- Parameters:
type
- theValidationException.ObjectType
to use.uid
- the UID to use, if any.message
- The detail message.cause
- theThrowable
that caused thisException
.enableSuppression
- whether or not suppression is enabled or disabled.writableStackTrace
- whether or not the stack trace should be writable.
-
-
Method Details
-
getMessage
- Overrides:
getMessage
in classThrowable
-