Package net.codecrete.qrbill.generator
Class QRBillValidationError
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- net.codecrete.qrbill.generator.QRBillValidationError
-
- All Implemented Interfaces:
java.io.Serializable
public class QRBillValidationError extends java.lang.RuntimeExceptionException thrown if the bill data is not valid.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description QRBillValidationError(ValidationResult validationResult)Constructs a new instance with the specified validation result.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetMessage()ValidationResultgetValidationResult()Gets the validation result with the error messages.
-
-
-
Constructor Detail
-
QRBillValidationError
public QRBillValidationError(ValidationResult validationResult)
Constructs a new instance with the specified validation result.- Parameters:
validationResult- validation result
-
-
Method Detail
-
getMessage
public java.lang.String getMessage()
- Overrides:
getMessagein classjava.lang.Throwable
-
getValidationResult
public ValidationResult getValidationResult()
Gets the validation result with the error messages.- Returns:
- the validation result
-
-