class Zugpferd::ValidationError

Overview

Raised by Validator#validate! (and Invoice#to_xml) when EN 16931 business rules are violated. #violations lists every failed rule so callers can report all errors at once.

Defined in:

zugpferd/error.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(violations : Array(String)) #

[View source]

Instance Method Detail

def violations : Array(String) #

[View source]