class
CycloneDX::ValidationError
- CycloneDX::ValidationError
- Reference
- Object
Defined in:
cyclonedx/validator.crConstructors
Instance Method Summary
- #message : String
- #path : String
-
#to_s(io : IO) : Nil
Defined as
#to_s(io)rather than a no-argto_s : String: string interpolation andIO#<<go through the IO form, so overriding only the no-arg form left"#{error}"printing the default#<ValidationError:0x…>while a directerror.to_slooked correct.
Constructor Detail
Instance Method Detail
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.