class CycloneDX::ValidationError

Defined in:

cyclonedx/validator.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(path : String, message : String) #

[View source]

Instance Method Detail

def message : String #

[View source]
def path : String #

[View source]
def to_s(io : IO) : Nil #

Defined as #to_s(io) rather than a no-arg to_s : String: string interpolation and IO#<< go through the IO form, so overriding only the no-arg form left "#{error}" printing the default #<ValidationError:0x…> while a direct error.to_s looked correct.


[View source]