Record Class StageError
java.lang.Object
java.lang.Record
com.inductiveautomation.eventstream.stage.StageError
-
Constructor Summary
ConstructorsConstructorDescriptionStageError
(String stage, long time, String name, String message, String trace) Creates an instance of aStageError
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.static StageError
fromThrowable
(String stage, Throwable throwable) final int
hashCode()
Returns a hash code value for this object.message()
Returns the value of themessage
record component.name()
Returns the value of thename
record component.stage()
Returns the value of thestage
record component.long
time()
Returns the value of thetime
record component.final String
toString()
Returns a string representation of this record class.trace()
Returns the value of thetrace
record component.
-
Constructor Details
-
StageError
Creates an instance of aStageError
record class.- Parameters:
stage
- the value for thestage
record componenttime
- the value for thetime
record componentname
- the value for thename
record componentmessage
- the value for themessage
record componenttrace
- the value for thetrace
record component
-
-
Method Details
-
fromThrowable
-
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 '=='. -
stage
Returns the value of thestage
record component.- Returns:
- the value of the
stage
record component
-
time
public long time()Returns the value of thetime
record component.- Returns:
- the value of the
time
record component
-
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
message
Returns the value of themessage
record component.- Returns:
- the value of the
message
record component
-
trace
Returns the value of thetrace
record component.- Returns:
- the value of the
trace
record component
-