Package org.ldk.structs
Class ParseOrSemanticError
- java.lang.Object
-
- org.ldk.structs.ParseOrSemanticError
-
- Direct Known Subclasses:
ParseOrSemanticError.ParseError
,ParseOrSemanticError.SemanticError
public class ParseOrSemanticError extends Object
Indicates that something went wrong while parsing or validating the invoice. Parsing errors should be mostly seen as opaque and are only there for debugging reasons. Semantic errors like wrong signatures, missing fields etc. could mean that someone tampered with the invoice.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ParseOrSemanticError.ParseError
The invoice couldn't be decodedstatic class
ParseOrSemanticError.SemanticError
The invoice could be decoded but violates the BOLT11 standard
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ParseOrSemanticError
clone()
Creates a copy of the ParseOrSemanticErrorboolean
eq(ParseOrSemanticError b)
Checks if two ParseOrSemanticErrors contain equal inner contents.boolean
equals(Object o)
protected void
finalize()
static ParseOrSemanticError
parse_error(ParseError a)
Utility method to constructs a new ParseError-variant ParseOrSemanticErrorstatic ParseOrSemanticError
semantic_error(SemanticError a)
Utility method to constructs a new SemanticError-variant ParseOrSemanticErrorString
to_str()
Get the string representation of a ParseOrSemanticError object
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
clone
public ParseOrSemanticError clone()
Creates a copy of the ParseOrSemanticError
-
parse_error
public static ParseOrSemanticError parse_error(ParseError a)
Utility method to constructs a new ParseError-variant ParseOrSemanticError
-
semantic_error
public static ParseOrSemanticError semantic_error(SemanticError a)
Utility method to constructs a new SemanticError-variant ParseOrSemanticError
-
eq
public boolean eq(ParseOrSemanticError b)
Checks if two ParseOrSemanticErrors contain equal inner contents. This ignores pointers and is_owned flags and looks at the values in fields.
-
to_str
public String to_str()
Get the string representation of a ParseOrSemanticError object
-
-