Class: JSONAPI::Utils::Exceptions::InternalServerError
- Inherits:
 - 
      Exceptions::Error
      
        
- Object
 - Exceptions::Error
 - JSONAPI::Utils::Exceptions::InternalServerError
 
 
- Defined in:
 - lib/jsonapi/utils/exceptions/internal_server_error.rb
 
Instance Method Summary collapse
- 
  
    
      #code  ⇒ String 
    
    
  
  
  
  
  
  
  
  
  
    
HTTP status code.
 - 
  
    
      #errors  ⇒ Array 
    
    
  
  
  
  
  
  
  
  
  
    
Decorate errors for 500 responses.
 
Instance Method Details
#code ⇒ String
HTTP status code
      10 11 12  | 
    
      # File 'lib/jsonapi/utils/exceptions/internal_server_error.rb', line 10 def code '500' end  | 
  
#errors ⇒ Array
Decorate errors for 500 responses.
      19 20 21 22 23 24 25 26  | 
    
      # File 'lib/jsonapi/utils/exceptions/internal_server_error.rb', line 19 def errors [JSONAPI::Error.new( code: code, status: :internal_server_error, title: 'Internal Server Error', detail: 'An internal error ocurred while processing the request.' )] end  |