Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
51 additions
and
23 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 |
---|---|---|
@@ -1,19 +0,0 @@ | ||
- update the readme DONE | ||
- write some examples | ||
- make sure no nested works | ||
- make sure single level of nesting with explicit nested works | ||
- make sure single level with implicit nested works | ||
- make sure 2 levels of nesting with explicit works | ||
- make sure 3 levels of nesting with implicit and explicit mix works correctly | ||
- get the travis stuff working | ||
|
||
disadvantages of nestegg | ||
------------------------- | ||
- non-standard looking stack trace | ||
- deep levels of nesting are likely to stuff it up | ||
- need to check if deep levels of nesting will stuff it up | ||
|
||
|
||
|
||
- include the new gem in Escort to replace the nesting stuff that is in there right now | ||
- do a blog post about Ruby nested exceptions | ||
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,23 @@ | ||
#!/usr/bin/env ruby | ||
|
||
require File.expand_path(File.join(File.expand_path(__FILE__), "..", "..", "lib", "nesty")) | ||
|
||
class MyError < StandardError | ||
include Nesty::NestedError | ||
end | ||
|
||
#just run this to see what get spit out to the console | ||
|
||
begin | ||
1/0 | ||
rescue => e | ||
begin | ||
raise MyError.new("Number errors will be caught", e) | ||
rescue => e | ||
begin | ||
raise MyError.new("Don't need to let MyError bubble up") | ||
rescue => e | ||
raise MyError.new("Last one for sure!") | ||
end | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/env ruby | ||
|
||
require File.expand_path(File.join(File.expand_path(__FILE__), "..", "..", "lib", "nesty")) | ||
|
||
class MyError < StandardError | ||
include Nesty::NestedError | ||
end | ||
|
||
#just run this to see what get spit out to the console | ||
|
||
raise MyError.new("Gotta catch 'em all!") |
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 @@ | ||
#!/usr/bin/env ruby | ||
|
||
require File.expand_path(File.join(File.expand_path(__FILE__), "..", "..", "lib", "nesty")) | ||
|
||
class MyError < StandardError | ||
include Nesty::NestedError | ||
end | ||
|
||
#just run this to see what get spit out to the console | ||
|
||
begin | ||
1/0 | ||
rescue => e | ||
raise MyError.new("Gotta catch 'em all!") | ||
end |