Exception: ZuoraConnect::Exceptions::AccessDenied
- Defined in:
- lib/zuora_connect/exceptions.rb
Instance Attribute Summary collapse
-
#default_message ⇒ Object
writeonly
Sets the attribute default_message.
Instance Method Summary collapse
-
#initialize(message = nil) ⇒ AccessDenied
constructor
A new instance of AccessDenied.
- #to_s ⇒ Object
Constructor Details
#initialize(message = nil) ⇒ AccessDenied
Returns a new instance of AccessDenied.
59 60 61 62 |
# File 'lib/zuora_connect/exceptions.rb', line 59 def initialize( = nil) @message = @default_message = "You are not authorized to access this page." end |
Instance Attribute Details
#default_message=(value) ⇒ Object (writeonly)
Sets the attribute default_message
57 58 59 |
# File 'lib/zuora_connect/exceptions.rb', line 57 def (value) @default_message = value end |
Instance Method Details
#to_s ⇒ Object
64 65 66 |
# File 'lib/zuora_connect/exceptions.rb', line 64 def to_s @message || @default_message end |