| 1 | package Zuzu::Error::Runtime; | ||
| 2 | |||
| 3 | 28 | ▶ | use utf8; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | 28 | our $VERSION = '0.007002'; | |
| 6 | |||
| 7 | 28 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 28 | extends 'Zuzu::Error'; | |
| 10 | |||
| 11 | 121 | ▶ | sub kind { 'RuntimeError' } |
|
Subroutine
kind: called CC=1 SCAR=0.0
Pod
documented
| |||
| 12 | |||
| 13 | =pod | ||
| 14 | |||
| 15 | =head1 NAME | ||
| 16 | |||
| 17 | Zuzu::Error::Runtime - runtime error for evaluation/execution failures | ||
| 18 | |||
| 19 | =head1 DESCRIPTION | ||
| 20 | |||
| 21 | Represents failures raised while executing AST nodes. | ||
| 22 | |||
| 23 | Typical examples include calling a non-function value, assigning to a | ||
| 24 | C<const> binding, invalid indexing/member operations, and missing | ||
| 25 | module exports at import time. | ||
| 26 | |||
| 27 | =head1 INHERITANCE | ||
| 28 | |||
| 29 | Inherits from L<Zuzu::Error>. | ||
| 30 | |||
| 31 | =head1 METHODS | ||
| 32 | |||
| 33 | =head2 kind | ||
| 34 | |||
| 35 | Returns C<RuntimeError>. | ||
| 36 | |||
| 37 | =head1 COPYRIGHT AND LICENCE | ||
| 38 | |||
| 39 | B<< Zuzu::Error::Runtime >> is copyright Toby Inkster. | ||
| 40 | |||
| 41 | It is free software; you may redistribute it and/or modify it under | ||
| 42 | the terms of either the Artistic License 1.0 or the GNU General Public | ||
| 43 | License version 2. | ||
| 44 | |||
| 45 | =cut | ||
| 46 | |||
| 47 | 28 | 1; | |