Exception: ExactTarget::ReadonlyError

Inherits:
Error show all
Defined in:
lib/exact_target/error.rb

Instance Attribute Summary

Attributes inherited from Error

#description, #id

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ ReadonlyError

Returns a new instance of ReadonlyError.



36
37
38
# File 'lib/exact_target/error.rb', line 36

def initialize(name)
  @name = name
end

Instance Method Details

#to_sObject



40
41
42
# File 'lib/exact_target/error.rb', line 40

def to_s
  "#{@name} is not allowed when the client is set to readonly"
end