NAME

Skilletor::Error - Exception base class of Skilletor

VERSION

version 0.001

SYNOPSIS

use Skilletor::Error::Config;

Skilletor::Error::Config->throw('~/.claude/skilletor.json: sources must be an object');

# caller
my $ok = eval { ...; 1 };
if ( !$ok && ref $@ && $@->isa('Skilletor::Error::Config') ) {
  print $@->message, "\n";
}

DESCRIPTION

Every error Skilletor reports to a user is an object of a subclass of this class. Its "message" is the reference implementation's message for the same case, exactly – no Perl file and line appended – and the object stringifies to it, so print "$@" shows what skilletor would show.

message

The message, as the reference implementation words it.

throw

Skilletor::Error::Config->throw($message);
Skilletor::Error::Config->throw( message => $message );

Builds the error and croaks with it.

SEE ALSO

Skilletor::Error::Config, Skilletor::Error::Spec, Skilletor::Error::Source, Skilletor::Error::Tar, Skilletor::Error::JSON, Skilletor::Error::Target

SUPPORT

CONTRIBUTING

Contributions are welcome! Please fork the repository and submit a pull request.

AUTHOR

Torsten Raudssus <getty@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2026 by Torsten Raudssus <torsten@raudssus.de> https://raudssus.de/.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.