Commit 08cf6027 by ivan Lan

Add BaseError

parent c63eeed5
module Whaleback
module Errors
end
end
\ No newline at end of file
module Whaleback
module Errors
class BaseError < RuntimeError
attr_accessor :message, :code, :status
def initialize message, code, status
super(message)
@message, @code, @status = message, code, status.to_i
end
end
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment