Class XMLReflectionException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.github.stefvanschie.inventoryframework.exception.XMLReflectionException
-
- All Implemented Interfaces:
Serializable
public class XMLReflectionException extends RuntimeException
An exception indicating that something went wrong while executing reflection that was loaded prior from an XML file. Keep in mind that, while this exception is thrown because of reflection, reflection that is executed while loading from the XML file will throw anXMLLoadException
if something goes wrong. This exception will only occur when the reflection error happens after loading has finished.- Since:
- 0.3.1
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description XMLReflectionException(@NotNull String message)
Constructs the exception with a given messageXMLReflectionException(@NotNull Throwable cause)
Constructs the exception with a given cause
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
XMLReflectionException
public XMLReflectionException(@NotNull @NotNull String message)
Constructs the exception with a given message- Parameters:
message
- the message to show- Since:
- 0.3.1
-
XMLReflectionException
public XMLReflectionException(@NotNull @NotNull Throwable cause)
Constructs the exception with a given cause- Parameters:
cause
- the cause of this exception- Since:
- 0.3.1
-
-