Record Class LaunchOutcome.Failed
java.lang.Object
java.lang.Record
com.botwithus.bot.api.script.LaunchOutcome.Failed
- Record Components:
code- the service's failure code, for example"launch_failed";"exited"when the process ended before injection;"service_unavailable"when the service went away and the launch could not be found againmessage- English text for logs
- All Implemented Interfaces:
LaunchOutcome
- Enclosing interface:
LaunchOutcome
public static record LaunchOutcome.Failed(String code, String message)
extends Record
implements LaunchOutcome
The launch failed before the client was injected, or the client exited
first.
-
Nested Class Summary
Nested classes/interfaces inherited from interface LaunchOutcome
LaunchOutcome.Attached, LaunchOutcome.AttachFailed, LaunchOutcome.Failed -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncode()Returns the value of thecoderecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Failed
-
-
Method Details
-
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). -
code
-
message
-