Exception: PublicSeriviceAnnouncement::AccessDenied

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

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of AccessDenied



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

#to_sObject



8
9
10
# File 'lib/public_service_announcement/exceptions.rb', line 8

def to_s
  @message
end