Record Class SchedulingCompilationError.UserCodeError
java.lang.Object
java.lang.Record
gov.nasa.jpl.aerie.scheduler.server.models.SchedulingCompilationError.UserCodeError
- Enclosing class:
SchedulingCompilationError
public static record SchedulingCompilationError.UserCodeError(String message, String stack, SchedulingCompilationError.CodeLocation location, String completeStack)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionUserCodeError(String message, String stack, SchedulingCompilationError.CodeLocation location, String completeStack) Creates an instance of aUserCodeErrorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecompleteStackrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.location()Returns the value of thelocationrecord component.message()Returns the value of themessagerecord component.stack()Returns the value of thestackrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
UserCodeError
public UserCodeError(String message, String stack, SchedulingCompilationError.CodeLocation location, String completeStack) Creates an instance of aUserCodeErrorrecord class.- Parameters:
message- the value for themessagerecord componentstack- the value for thestackrecord componentlocation- the value for thelocationrecord componentcompleteStack- the value for thecompleteStackrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
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
-
location
Returns the value of thelocationrecord component.- Returns:
- the value of the
locationrecord component
-
completeStack
Returns the value of thecompleteStackrecord component.- Returns:
- the value of the
completeStackrecord component
-