Class NodeFormatException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
ai.badmonkey.agentspaces.pdt.NodeFormatException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
SealedNodeException
A refusal by the node layer (PD-N-04, PD-N-06): the node is over a bound, a
link names a codec the decoder does not know, the kind is unknown, a key falls
outside the kind's schema, or the bytes do not hash to the CID they claim. The
exception carries the CID when the caller knew it and the rule that refused.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionNodeFormatException(String rule) A refusal of bytes whose CID the caller did not know.NodeFormatException(String cid, String rule) A refusal of a named node.NodeFormatException(String cid, String rule, Throwable cause) A refusal of a named node with an underlying cause. -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
NodeFormatException
A refusal of bytes whose CID the caller did not know.- Parameters:
rule- the rule that refused, named for the operator
-
NodeFormatException
-
NodeFormatException
-
-
Method Details
-
cid
The CID of the refused node, or null when the caller did not know it. -
rule
The rule that refused. -
withCid
A copy of this exception that names the CID, when this one does not.
-