Package com.github.mizool.core.exception
Class ReadonlyFieldException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.github.mizool.core.exception.AbstractUnprocessableEntityException
com.github.mizool.core.exception.ReadonlyFieldException
- All Implemented Interfaces:
Serializable
Thrown when an attempt is made to change the value of a field that is considered read-only for the current operation.
For example, it may be forbidden to change the name of a user group, although it must be set when creating one.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionReadonlyFieldException
(@NonNull String fieldName) ReadonlyFieldException
(@NonNull String fieldName, @NonNull String recordId) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ReadonlyFieldException
-
ReadonlyFieldException
-
-
Method Details
-
getFieldName
-
getRecordId
-