Sha256: 11231c324543d871b72c566d321465e32f17cd5fac8d65d3771f557babd367a7

Contents?: true

Size: 365 Bytes

Versions: 6

Compression:

Stored size: 365 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 < ::Exception
  end

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mirage-3.0.0.alpha.17 lib/mirage/client/error.rb
mirage-3.0.0.alpha.16 lib/mirage/client/error.rb
mirage-3.0.0.alpha.15 lib/mirage/client/error.rb
mirage-3.0.0.alpha.14 lib/mirage/client/error.rb
mirage-3.0.0.alpha.13 lib/mirage/client/error.rb
mirage-3.0.0.alpha.12 lib/mirage/client/error.rb