In Files

Parent

Included Modules

Files

Protocol::CheckFailed

This exception collects CheckError exceptions and mixes in Enumerable for further processing of them.

Attributes

errors[R]

(Not documented)

Public Class Methods

new(*errors) click to toggle source

(Not documented)

# File lib/protocol.rb, line 102
    def initialize(*errors)
      @errors = errors
    end

Public Instance Methods

<<(check_error) click to toggle source

Add check_error to this CheckFailed instance.

# File lib/protocol.rb, line 115
    def <<(check_error)
      @errors << check_error
      self
    end
each(&block) click to toggle source

Alias for each_error

each_error(&block) click to toggle source

Iterate over all errors of this CheckFailed instance and pass each one to block.

# File lib/protocol.rb, line 122
    def each_error(&block)
      errors.each(&block)
    end
Also aliased as: each
empty?() click to toggle source

Return true, if this CheckFailed doesn’t contain any errors (yet). Otherwise false is returned.

# File lib/protocol.rb, line 110
    def empty?
      errors.empty?
    end
inspect() click to toggle source

(Not documented)

# File lib/protocol.rb, line 133
    def inspect
      "#<#{self.class.name}: #{errors.map { |e| e.inspect} * '|'}"
    end
to_s() click to toggle source

(Not documented)

# File lib/protocol.rb, line 129
    def to_s
      errors * "|"
    end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.