Record Class AuthAttempt.Failure
java.lang.Object
java.lang.Record
com.inductiveautomation.ignition.common.auth.messages.AuthAttempt.Failure
- All Implemented Interfaces:
AuthAttempt
- Enclosing interface:
- AuthAttempt
public static record AuthAttempt.Failure(int errorCode, String message, List<AuthAttempt.Failure.Stacktrace> stack)
extends Record
implements AuthAttempt
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface com.inductiveautomation.ignition.common.auth.messages.AuthAttempt
AuthAttempt.Failure, AuthAttempt.GsonAdapter, AuthAttempt.Success
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.int
Returns the value of theerrorCode
record component.final int
hashCode()
Returns a hash code value for this object.message()
Returns the value of themessage
record component.stack()
Returns the value of thestack
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Failure
-
Failure
Creates an instance of aFailure
record class.- Parameters:
errorCode
- the value for theerrorCode
record componentmessage
- the value for themessage
record componentstack
- the value for thestack
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
errorCode
public int errorCode()Returns the value of theerrorCode
record component.- Returns:
- the value of the
errorCode
record component
-
message
Returns the value of themessage
record component.- Returns:
- the value of the
message
record component
-
stack
Returns the value of thestack
record component.- Returns:
- the value of the
stack
record component
-