Exception: PublicSeriviceAnnouncement::AccessDenied
- Inherits:
-
StandardError
- Object
- StandardError
- PublicSeriviceAnnouncement::AccessDenied
- Defined in:
- lib/public_service_announcement/exceptions.rb
Instance Method Summary (collapse)
-
- (AccessDenied) initialize(message = "You are not authorized to access this page."))
constructor
A new instance of AccessDenied.
- - (Object) to_s
Constructor Details
- (AccessDenied) initialize(message = "You are not authorized to access this page."))
A new instance of AccessDenied
4 5 6 |
# File 'lib/public_service_announcement/exceptions.rb', line 4 def initialize( = "You are not authorized to access this page.") @message = end |
Instance Method Details
- (Object) to_s
8 9 10 |
# File 'lib/public_service_announcement/exceptions.rb', line 8 def to_s @message end |