Exception: PublicSeriviceAnnouncement::AccessDenied

Inherits:
StandardError
  • Object
show all
Defined in:
lib/public_service_announcement/exceptions.rb

Instance Method Summary (collapse)

Constructor Details

- (AccessDenied) initialize(message = "You are not authorized to access this page."))



4
5
6
# File 'lib/public_service_announcement/exceptions.rb', line 4

def initialize(message = "You are not authorized to access this page.")
  @message = 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