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.
57 58 59 60 |
# File 'lib/zuora_connect/exceptions.rb', line 57 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
55 56 57 |
# File 'lib/zuora_connect/exceptions.rb', line 55 def (value) @default_message = value end |
Instance Method Details
#to_s ⇒ Object
62 63 64 |
# File 'lib/zuora_connect/exceptions.rb', line 62 def to_s @message || @default_message end |