Contents
- Today's Questions
- What's wrong with this code?
- Expect the unexpected!
- Expect the unexpected
- Catching exceptions with eval
- Leave the hard stuff to autodie
- Errors messages from autodie
- One subtlety with die (and warn)
- A note about eval
- Exceptions and debugging
- Why use exceptions?
- Why: easier than the alternative
- Why: separation of concerns
- Why: exception handling is fast
- Why: hard to ignore
- Why catch exceptions?
- Exceptions in Java
- Exceptions in Ruby
- Back to Perl
- Can you rely on $@?
- Not before 5.14 you can't
- Detect failure more reliably
- The Try::Tiny boilerplate
- Using Try::Tiny
- The magic of prototypes
- Handling exceptions
- Structured exceptions
- Using Exception::Class
- Exception::Class & Try::Tiny
- Ensure all exceptions are objects
- Handling autodie errors
- Try::Tiny::ByClass
- See also
- ...
- A Database Example
- The End