Skip to content

Commit

Permalink
note about mixing in X::Comp
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed Jun 4, 2012
1 parent d88cbf4 commit 64947f6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions S32-setting-library/Exception.pod
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ compilation was triggered (through C<use SomeModule;>, C<eval>s etc.).
The actual location of the error does not appear in the backtrace, but
rather in the attributes defined in this role.

For exceptions that can occur both at run time and at compile time, the base
exception type should not do C<X::Comp>, but it should be mixed in into
the exception object when thrown at compile time.

=head3 X::Syntax

role X::Syntax does X::Comp { }
Expand Down

0 comments on commit 64947f6

Please sign in to comment.