| 1 | # An exception class used as a way to convey that some thrown errors are benign. | ||
| 2 | # This is a hack for the purpose of https://harmonica-tabs-creator.com | ||
| 3 | |||
| 4 | package Music::Harmonica::TabsCreator::Warning; | ||
| 5 | |||
| 6 | 3 | ▶ | use 5.036; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 3 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | 3 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | 3 | ▶ | use utf8; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | |||
| 11 | 3 | ▶ | use overload '""' => 'as_string'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | |||
| 13 | 3 | our $VERSION = '0.01'; | |
| 14 | |||
| 15 | 1 | ▶ | sub new ($class, $message) { |
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 16 | 1 | my $self = bless {message => $message,}, $class; | |
| 17 | 1 | return $self; | |
| 18 | } | ||
| 19 | |||
| 20 | 2 | ▶ | sub as_string ($self, $, $) { |
|
Subroutine
as_string: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 21 | 2 | return $self->{message}."\n"; | |
| 22 | } | ||
| 23 | |||
| 24 | 3 | 1; | |