Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added docs for X::Caller::NotDynamic and fixed a broken link relating…
… to that
  • Loading branch information
Jan-Olof Hendig committed May 28, 2016
1 parent 7e63db0 commit ff5caf0
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion doc/Type/Variable.pod
Expand Up @@ -54,7 +54,7 @@ without being in an inner lexical scope.
{
# not dynamic
my $x;
introspect() # dies with an exception of L<type X::Caller::NotDynamic|/type/X::CallerNotDynamic>
introspect() # dies with an exception of L<type X::Caller::NotDynamic|/type/X::Caller::NotDynamic>
}
=end code
Expand Down
21 changes: 21 additions & 0 deletions doc/Type/X/Caller/NotDynamic.pod
@@ -0,0 +1,21 @@
=begin pod
=TITLE class X::Caller::NotDynamic
=SUBTITLE Error while trying to access a non dynamic variable through CALLER
class X::Caller::NotDynamic is Exception { }
Thrown when trying to access a non dynamic variable through CALLER
A typical error message is
Cannot access '$x' through CALLER, because it is not declared as dynamic
=head1 Methods
=head2 method symbol
Returns the name of the symbol that was passed to CALLER.
=end pod
1 change: 1 addition & 0 deletions type-graph.txt
Expand Up @@ -272,6 +272,7 @@ class X::Set::Coerce is Exception
class X::StubCode is Exception
class X::Eval::NoSuchLang is Exception
class X::Seq::Consumed is Exception
class X::Caller::NotDynamic is Exception

[Exceptions]
# Exceptions: Numbers
Expand Down

0 comments on commit ff5caf0

Please sign in to comment.