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
public class ReadonlyFieldException extends AbstractUnprocessableEntityException
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ReadonlyFieldException(@NonNull String fieldName)
ReadonlyFieldException(@NonNull String fieldName, @NonNull String recordId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getFieldName()
String
getRecordId()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-