Skip to content

Commit

Permalink
Add code accessor to NeographyError.
Browse files Browse the repository at this point in the history
  • Loading branch information
rdvdijk committed Sep 28, 2012
1 parent 58eae25 commit b48144f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/neography/errors.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
module Neography

class NeographyError < StandardError
attr_reader :message, :stacktrace
attr_reader :message, :code, :stacktrace

def initialize(message = nil, code = nil, stacktrace = nil)
@message = message
@message = message
@code = code
@stacktrace = stacktrace
end
end
Expand Down

0 comments on commit b48144f

Please sign in to comment.