Record Class StatefulModificationResponse.InvalidRequest
java.lang.Object
java.lang.Record
com.inductiveautomation.ignition.gateway.config.actions.StatefulModificationResponse.InvalidRequest
- All Implemented Interfaces:
StatefulModificationResponse
- Enclosing interface:
StatefulModificationResponse
public static record StatefulModificationResponse.InvalidRequest(Exception problem)
extends Record
implements StatefulModificationResponse
The request could not be carried out because of something the caller did.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface StatefulModificationResponse
StatefulModificationResponse.Conflict, StatefulModificationResponse.Failure, StatefulModificationResponse.InvalidRequest, StatefulModificationResponse.NotFound, StatefulModificationResponse.NotPrimary, StatefulModificationResponse.Success, StatefulModificationResponse.ValidationFailed -
Field Summary
Fields inherited from interface StatefulModificationResponse
FALLBACK_MESSAGE -
Constructor Summary
ConstructorsConstructorDescriptionInvalidRequest(Exception problem) Creates an instance of aInvalidRequestrecord class.InvalidRequest(String message) A refusal with nothing to say beyondmessage; classified as a bad argument. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.message()The text meant for whoever made the request.problem()Returns the value of theproblemrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
InvalidRequest
A refusal with nothing to say beyondmessage; classified as a bad argument. -
InvalidRequest
Creates an instance of aInvalidRequestrecord class.- Parameters:
problem- the value for theproblemrecord component
-
-
Method Details
-
message
The text meant for whoever made the request. Never null — nothing stops a caller supplying an exception with no message, and a null reaches the UI as the raw envelope. -
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
problem
Returns the value of theproblemrecord component.- Specified by:
problemin interfaceStatefulModificationResponse- Returns:
- the value of the
problemrecord component
-