Sha256: 8f74d9c4e8236b09029a8a40f1f183126e69c78c6639fca3166f8e6a60d56a0e
Contents?: true
Size: 351 Bytes
Versions: 3
Compression:
Stored size: 351 Bytes
Contents
module Moceansdk module Exceptions class MoceanError < StandardError attr_reader :error_response def initialize(msg, error_response = nil) if error_response.nil? super(msg) else super(error_response['err_msg']) @error_response = error_response end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
moceansdk-1.1.1 | lib/moceansdk/exceptions/mocean_error.rb |
moceansdk-1.1.0 | lib/moceansdk/exceptions/mocean_error.rb |
moceansdk-1.0.1 | lib/moceansdk/exceptions/mocean_error.rb |