Class: Glia::Errors::InternalServerError

Inherits:
Error
  • Object
show all
Defined in:
lib/glia/errors/server_errors.rb

Overview

rubocop:disable Style/Documentation

Instance Attribute Summary

Attributes inherited from Error

#error_details, #message, #ref, #type

Instance Method Summary collapse

Methods inherited from Error

#to_h

Constructor Details

#initialize(message: nil) ⇒ InternalServerError

Returns a new instance of InternalServerError.



7
8
9
10
11
12
13
# File 'lib/glia/errors/server_errors.rb', line 7

def initialize(message: nil)
  super(
    type: INTERNAL_SERVER_ERROR,
    ref: create_ref(INTERNAL_SERVER_ERROR),
    message: message || 'Internal server error'
  )
end