Exception: CSD::Error::CSDError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/csd/error.rb

Overview

All Exceptions raised by CSD must be children of this class.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.status_code(code = nil) ⇒ Object



9
10
11
12
# File 'lib/csd/error.rb', line 9

def self.status_code(code = nil)
  return @code unless code
  @code = code
end

Instance Method Details

#status_codeObject



14
15
16
# File 'lib/csd/error.rb', line 14

def status_code
  self.class.status_code
end