Record Class NodeError
java.lang.Object
java.lang.Record
org.jweaver.crawler.internal.result.NodeError
- Record Components:
uri
- URI of the nodedepth
- Current depth of the nodeerror
- Error message during crawling attempt
The NodeError record represents an error associated with a specific node during web crawling. It
includes information such as the URI of the node, its depth in the crawling hierarchy, and the
error message.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
depth()
Returns the value of thedepth
record component.final boolean
Indicates whether some other object is "equal to" this one.error()
Returns the value of theerror
record component.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.uri()
Returns the value of theuri
record component.
-
Constructor Details
-
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
uri
Returns the value of theuri
record component.- Returns:
- the value of the
uri
record component
-
depth
public int depth()Returns the value of thedepth
record component.- Returns:
- the value of the
depth
record component
-
error
Returns the value of theerror
record component.- Returns:
- the value of the
error
record component
-