Exception: Commits::CreateService::ChangeError

Inherits:
StandardError
  • Object
show all
Defined in:
app/services/commits/create_service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, error_code = nil) ⇒ ChangeError

Returns a new instance of ChangeError.



9
10
11
12
13
# File 'app/services/commits/create_service.rb', line 9

def initialize(message, error_code = nil)
  super(message)

  @error_code = error_code
end

Instance Attribute Details

#error_codeObject (readonly)

Returns the value of attribute error_code.



7
8
9
# File 'app/services/commits/create_service.rb', line 7

def error_code
  @error_code
end