Class: Sinatra::ServerError

Class | Sinatra::ServerError
In: | lib/sinatra/compat.rb
Parent: | RuntimeError

The ServerError exception is deprecated. Any exception is considered an internal server error.

### Methods

code new

### Public Class methods

new(*args, &block)

[Source]

        # File lib/sinatra/compat.rb, line 70
    70:     def initialize(*args, &block)
    71:       sinatra_warn 'Sinatra::ServerError is deprecated;',
    72:         'use another exception, error, or Kernel#fail instead.'
    73:     end

### Public Instance methods

code()

[Source]

        # File lib/sinatra/compat.rb, line 74
    74:     def code ; 500 ; end

[Validate]