Sha256: 91a675c65006be34cc5d5841e50aa4fec058978fd7463b28421e5629642952a3

Contents?: true

Size: 366 Bytes

Versions: 15

Compression:

Stored size: 366 Bytes

Contents

module Mirage
  class MirageError < ::Exception
    attr_reader :code

    def initialize message, code
      super message
      @code = message, code
    end
  end

  class InternalServerException < MirageError;
  end

  class ResponseNotFound < MirageError;
  end

  class ClientError < ::Exception
    def initialize message
      super message
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
mirage-3.0.0.alpha.11 lib/mirage/client/error.rb
mirage-3.0.0.alpha.10 lib/mirage/client/error.rb
mirage-3.0.0.alpha.9 lib/mirage/client/error.rb
mirage-3.0.0.alpha.8 lib/mirage/client/error.rb
mirage-3.0.0.alpha.7 lib/mirage/client/error.rb
mirage-3.0.0.alpha.6 lib/mirage/client/error.rb
mirage-3.0.0.alpha.5 lib/mirage/client/error.rb
mirage-3.0.0.alpha.4 lib/mirage/client/error.rb
mirage-3.0.0.alpha.3 lib/mirage/client/error.rb
mirage-3.0.0.alpha.2 lib/mirage/client/error.rb
mirage-3.0.0.alpha.1 lib/mirage/client/error.rb
mirage-2.4.2 lib/mirage/client/error.rb
mirage-2.4.1 lib/mirage/client/error.rb
mirage-2.4.0 lib/mirage/client/error.rb
mirage-2.3.0 lib/mirage/client/error.rb