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 classParseOrSemanticError.ParseErrorThe invoice couldn't be decodedstatic classParseOrSemanticError.SemanticErrorThe invoice could be decoded but violates the BOLT11 standard
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ParseOrSemanticErrorclone()Creates a copy of the ParseOrSemanticErrorprotected voidfinalize()static ParseOrSemanticErrorparse_error(ParseOrSemanticError.ParseError a)Utility method to constructs a new ParseError-variant ParseOrSemanticErrorstatic ParseOrSemanticErrorsemantic_error(SemanticError a)Utility method to constructs a new SemanticError-variant ParseOrSemanticErrorStringto_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(ParseOrSemanticError.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
-
to_str
public String to_str()
Get the string representation of a ParseOrSemanticError object
-
-