class Moceansdk::Exceptions::MoceanError
Attributes
error_response[R]
Public Class Methods
new(msg, error_response = nil)
click to toggle source
Calls superclass method
# File lib/moceansdk/exceptions/mocean_error.rb, line 7 def initialize(msg, error_response = nil) if error_response.nil? super(msg) else super(error_response['err_msg']) @error_response = error_response end end