Sha256: d900edde2acf745ec84baf577e867c0a9aecb6f89e323bc581143100aca5bca6

Contents?: true

Size: 396 Bytes

Versions: 7

Compression:

Stored size: 396 Bytes

Contents

require File.join(File.dirname(__FILE__), 'blockscore_error')

module BlockScore
  class InternalServerError < BlockscoreError

    @@http_status = 500

    def initialize(message=nil, json_body=nil, error_type=nil)

      super(message, json_body, @@http_status, error_type)

      @message = message
    end

    def to_s
      "Status: #{@@http_status}, Message: #{@message}"
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
blockscore-4.0.0 lib/blockscore/error/internal_server_error.rb
blockscore-3.0.1 lib/blockscore/error/internal_server_error.rb
blockscore-3.0.0 lib/blockscore/error/internal_server_error.rb
blockscore-2.1.2 lib/blockscore/error/internal_server_error.rb
blockscore-2.1.1 lib/blockscore/error/internal_server_error.rb
blockscore-2.1.0 lib/blockscore/error/internal_server_error.rb
blockscore-2.0.1 lib/blockscore/error/internal_server_error.rb