Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
more exception classes
- Loading branch information
Showing
6 changed files
with
120 additions
and
0 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,13 @@ | ||
| =begin pod | ||
| =TITLE class X::IO::Chmod | ||
| class X::IO::Chmod does X::IO is Exception | ||
| Error class for failed C<chmod> calls. | ||
| A typical error message is | ||
| Failed to set the mode of '/home/other' to '0o777': Permission denied | ||
| =end pod |
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,19 @@ | ||
| =begin pod | ||
| =TITLE class X::IO::Rmdir | ||
| my class X::IO::Rmdir does X::IO is Exception | ||
| Error class for failed L<&rmdir> operations. | ||
| A typical error message is | ||
| Failed to remove the directory 'lib': Directory not empty | ||
| =head1 Methods | ||
| =head2 path | ||
| Returns the path L<&rmdir> failed to remove | ||
| =end pod |
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,19 @@ | ||
| =begin pod | ||
| =TITLE class X::IO::Unlink | ||
| class X::IO::Unlink does X::IO is Exception | ||
| Error class for failed L<&unlink> operation. | ||
| A typica error message is | ||
| Failed to remove the file 'secret': Permission defined | ||
| =head1 Methods | ||
| =head2 path | ||
| Returns the path that L<&unlink> failed to delete. | ||
| =end pod |
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,27 @@ | ||
| =begin pod | ||
| =TITLE class X::NYI | ||
| class X::NYI is Exception { } | ||
| Error class for unimplemented features. I<NYI> stands for I<Not Yet | ||
| Implemented>. | ||
| If a Perl 6 compiler is not yet feature complete, it may throw an C<X::NYI> | ||
| exception when a program uses a feature that it can detect is not yet | ||
| implemented. | ||
| A full-featured Perl 6 compiler must not throw such exceptions, but | ||
| still provide the C<X::NYI> class for compatiblity reasons. | ||
| A typical error message is | ||
| HyperWhatever is not yet implemented. Sorry. | ||
| =head1 Methods | ||
| =head2 features | ||
| Returns a C<Str> describing the missing feature. | ||
| =end pod |
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,21 @@ | ||
| =begin pod | ||
| =TITLE class X::Placeholder | ||
| class X::Placeholder::Block does X::Comp | ||
| Thrown when a placeholder variable is used in a block that does not allow a | ||
| signature (for example C<class A { $^foo }>. | ||
| A typical error message is | ||
| Placeholder variable $^foo may not be used here because the surrounding block takes no signature | ||
| =head1 Methods | ||
| =head2 placeholder | ||
| Returns the name of the (first) illegally used placeholder. | ||
| =end pod |