Class ParsingNestedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.openhab.core.automation.parser.ParsingNestedException
- All Implemented Interfaces:
Serializable
This class extends the
Exception
class functionality with keeping additional information about reasons for
exception during the parsing process.- Author:
- Ana Dimova - Initial contribution
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
-
Constructor Summary
ConstructorDescriptionParsingNestedException
(int type, @Nullable String id, String msg, Throwable t) Creates an exception based on exception thrown the parsing plus information about the type of the automation object, its UID and additional message with additional information about the parsing process.ParsingNestedException
(int type, @Nullable String id, Throwable t) Creates an exception based on exception thrown during the parsing plus information about the type of the automation object and its UID. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
MODULE_TYPE
public static final int MODULE_TYPE- See Also:
-
TEMPLATE
public static final int TEMPLATE- See Also:
-
RULE
public static final int RULE- See Also:
-
-
Constructor Details
-
ParsingNestedException
Creates an exception based on exception thrown the parsing plus information about the type of the automation object, its UID and additional message with additional information about the parsing process.- Parameters:
type
- is the type of the automation object for parsing.id
- is the UID of the automation object for parsing.msg
- is the additional message with additional information about the parsing process.t
- is the exception thrown during the parsing.
-
ParsingNestedException
Creates an exception based on exception thrown during the parsing plus information about the type of the automation object and its UID.- Parameters:
type
- is the type of the automation object for parsing.id
- is the UID of the automation object for parsing.t
- is the exception thrown during the parsing.
-
-
Method Details
-
getMessage
- Overrides:
getMessage
in classThrowable
-