Record Class ScriptFailure
java.lang.Object
java.lang.Record
de.luckymcdev.foundryengine.script.common.runtime.ScriptFailure
- Record Components:
script- the script or class involved, null for bundle-wide failuresstage- compile, define, instantiate, onLoad or onUnloadcause- the exception (a ScriptTimeoutException for timeouts)
-
Constructor Summary
ConstructorsConstructorDescriptionScriptFailure(@Nullable String script, String stage, Throwable cause) Creates an instance of aScriptFailurerecord class. -
Method Summary
Modifier and TypeMethodDescriptioncause()Returns the value of thecauserecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable Stringscript()Returns the value of thescriptrecord component.stage()Returns the value of thestagerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ScriptFailure
-
-
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). -
script
-
stage
-
cause
-