Exception: Lunetas::Error::BaseError

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

Direct Known Subclasses

APIError, AuthenticationError, BuildError

Instance Method Summary collapse

Instance Method Details

#codeObject



6
7
8
# File 'lib/lunetas/error.rb', line 6

def code
  400 
end

#messageObject



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

def message
  "Error"
end

#to_jsonObject



3
4
5
# File 'lib/lunetas/error.rb', line 3

def to_json
  {'error' => message}.to_json
end

#to_sObject



12
13
14
# File 'lib/lunetas/error.rb', line 12

def to_s
  message
end