NAME

Text::Parser::Errors - Exceptions for Text::Parser

VERSION

version 0.916

DESCRIPTION

This document contains a manifest of all the exception classes thrown by Text::Parser.

EXCEPTION CLASSES

All exceptions are derived from Text::Parser::Errors::GenericError. They are all based on Throwable::SugarFactory and so all the exception methods of those, such as error, namespace, etc., will be accessible. Read Exceptions if you don't know about exceptions in Perl 5.

Text::Parser::Errors::InvalidFilename

Thrown when file name specified to read or filename is invalid.

Attributes

name

A string with the anticipated file name.

Text::Parser::Errors::InvalidFilename

Thrown when file name specified to read or filename has no read permissions or is unreadable for any other reason.

Attributes

name

A string with the name of the file that could not be read

Text::Parser::Errors::CantUndoMultiline

Thrown when a multi-line parser is turned back to a non-multiline one.

Text::Parser::Errors::UnexpectedEof

Thrown when a line continuation character is at the end of a file, indicating that the line is continued on the next line. Since there is no further line, the line continuation is left unterminated and is an error condition. This exception is thrown only for join_next type of multiline parsers.

Attributes

discontd

This is a string containing the line which got discontinued by the unexpected EOF.

line_num

The line at which the unexpected EOF is encountered.

Text::Parser::Errors::UnexpectedCont

Thrown when a line continuation character is at the beginning of a file, indicating that the previous line should be joined. Since there is no line before the first line, this is an error condition. This is thrown only in join_last type of multiline parsers.

Attributes

line

This is a string containing the content of the line with the unexpected continuation character. Given the description, it is obvious that the line number is 1.

SEE ALSO

BUGS

Please report any bugs or feature requests on the bugtracker website http://github.com/balajirama/Text-Parser/issues

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.

AUTHOR

Balaji Ramasubramanian <balajiram@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2018-2019 by Balaji Ramasubramanian.

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