Exception: Oso::ForbiddenError
- Inherits:
 - 
      AuthorizationError
      
        
- Object
 - RuntimeError
 - Error
 - AuthorizationError
 - Oso::ForbiddenError
 
 
- Defined in:
 - lib/oso/errors.rb
 
Overview
Thrown by the authorize, authorize_field, and
authorize_request methods when the action is not allowed.
Most of the time, your app should handle this error by returning a 403 HTTP error to the client.
Instance Method Summary collapse
- 
  
    
      #initialize  ⇒ ForbiddenError 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of ForbiddenError.
 
Constructor Details
#initialize ⇒ ForbiddenError
Returns a new instance of ForbiddenError.
      16 17 18 19 20 21 22  | 
    
      # File 'lib/oso/errors.rb', line 16 def initialize super( 'Oso ForbiddenError -- The requested action was not allowed for the ' \ 'given resource. You should handle this error by returning a 403 error ' \ 'to the client.' ) end  |