-
-
Notifications
You must be signed in to change notification settings - Fork 503
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the issue where only one error is displayed, even when multiple e…
…rrors are present.
- Loading branch information
Showing
6 changed files
with
59 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
class InventoryActionError < StandardError | ||
# @return [Integer] | ||
attr_accessor :item_id | ||
# @return [Integer] | ||
attr_accessor :storage_location_id | ||
|
||
# @param message [String] | ||
# @param item_id [Integer] | ||
# @param storage_location_id [Integer] | ||
def initialize(message, item_id, storage_location_id) | ||
super(message) | ||
self.item_id = item_id | ||
self.storage_location_id = storage_location_id | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,9 @@ | ||
class InventoryError < StandardError | ||
# @return [Event] | ||
attr_accessor :event | ||
# @return [Integer] | ||
attr_accessor :item_id | ||
# @return [Integer] | ||
attr_accessor :storage_location_id | ||
|
||
# @param message [String] | ||
# @param item_id [Integer] | ||
# @param storage_location_id [Integer] | ||
def initialize(message, item_id, storage_location_id) | ||
super(message) | ||
self.item_id = item_id | ||
self.storage_location_id = storage_location_id | ||
def initialize(message) | ||
super | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters