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 AuthAttempt
AuthAttempt.Failure, AuthAttempt.GsonAdapter, AuthAttempt.Success, AuthAttempt.Type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intReturns the value of theerrorCoderecord component.final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.stack()Returns the value of thestackrecord component.final StringtoString()Returns a string representation of this record class.type()
-
Constructor Details
-
Failure
-
Failure
Creates an instance of aFailurerecord class.- Parameters:
errorCode- the value for theerrorCoderecord componentmessage- the value for themessagerecord componentstack- the value for thestackrecord component
-
-
Method Details
-
type
- Specified by:
typein interfaceAuthAttempt
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
errorCode
public int errorCode()Returns the value of theerrorCoderecord component.- Returns:
- the value of the
errorCoderecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
stack
Returns the value of thestackrecord component.- Returns:
- the value of the
stackrecord component
-