Sha256: d3a2dada6bf91664f284166a04455d3be7003216dfab102cc0f86ccd3ed76e9a

Contents?: true

Size: 613 Bytes

Versions: 23

Compression:

Stored size: 613 Bytes

Contents

module Her
  module Errors
    class PathError < StandardError
      attr_reader :missing_parameter

      def initialize(message, missing_parameter=nil)
        super(message)
        @missing_parameter = missing_parameter
      end
    end

    class AssociationUnknownError < StandardError
    end

    class ParseError < StandardError
    end

    class ResourceInvalid < StandardError
      attr_reader :resource
      def initialize(resource)
        @resource = resource
        errors = @resource.response_errors.join(", ")
        super("Remote validation failed: #{errors}")
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 3 rubygems

Version Path
her-0.10.4 lib/her/errors.rb
her-0.10.3 lib/her/errors.rb
her-0.10.2 lib/her/errors.rb
her-1.0.1 lib/her/errors.rb
her-1.0.0 lib/her/errors.rb
her-0.10.1 lib/her/errors.rb
her-0.10.0 lib/her/errors.rb
her-0.9.0 lib/her/errors.rb
her-0.8.6 lib/her/errors.rb
her-0.8.5 lib/her/errors.rb
her-0.8.4 lib/her/errors.rb
her-0.8.3 lib/her/errors.rb
her-0.8.2 lib/her/errors.rb
castle-her-1.0.1 lib/castle-her/errors.rb
her-0.8.1 lib/her/errors.rb
her-0.7.6 lib/her/errors.rb
her-0.7.5 lib/her/errors.rb
her-0.7.4 lib/her/errors.rb
herr-0.7.3 lib/her/errors.rb
her-0.7.3 lib/her/errors.rb