java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
net.luis.utils.exception.ModificationException
- All Implemented Interfaces:
Serializable
Thrown when a method is called on an object which will modify it,
but the object is not modifiable at the moment or at all.
but the object is not modifiable at the moment or at all.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new modification exception with no details.ModificationException
(@Nullable String message) Constructs a new modification exception with the specified message.ModificationException
(@Nullable String message, @Nullable Throwable cause) Constructs a new modification exception with the specified message and cause.ModificationException
(@Nullable Throwable cause) Constructs a new modification exception with the specified cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ModificationException
public ModificationException()Constructs a new modification exception with no details. -
ModificationException
Constructs a new modification exception with the specified message.- Parameters:
message
- The message of the exception
-
ModificationException
public ModificationException(@Nullable @Nullable String message, @Nullable @Nullable Throwable cause) Constructs a new modification exception with the specified message and cause.- Parameters:
message
- The message of the exceptioncause
- The cause of the exception
-
ModificationException
Constructs a new modification exception with the specified cause.- Parameters:
cause
- The cause of the exception
-