Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
whaleback
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open-source
whaleback
Commits
08cf6027
Commit
08cf6027
authored
Jul 16, 2018
by
ivan Lan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add BaseError
parent
c63eeed5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
errors.rb
lib/whaleback/errors.rb
+5
-0
base_error.rb
lib/whaleback/errors/base_error.rb
+11
-0
No files found.
lib/whaleback/errors.rb
0 → 100644
View file @
08cf6027
module
Whaleback
module
Errors
end
end
\ No newline at end of file
lib/whaleback/errors/base_error.rb
0 → 100644
View file @
08cf6027
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment