class parse_failed


class parse_failed
    : public std::invalid_argument

Description

This exception type indicates that a parse attempt failed.

Public Member Functions

parse_failed (
    const char* message,
    type t
)
noexcept

Constructs a parse_failed exception with the given message and type.

Parameters:
  • message:

    The message to use with this exception.

  • t:

    The type of failure that was encountered during parsing.

parse_failed (
    const parse_failed& other
)

Copy-constructs a parse_failed from an existing one.

Parameters:
  • other:

    The parse_failed to copy from.

parse_failed&
operator = (
    const parse_failed& other
)

Copy-assigns a parse_failed into this one.

Parameters:
  • other:

    The parse_failed to copy from.

parse_failed (
    parse_failed&& other
)
noexcept

Move-constructs a parse_failed from an existing one.

Parameters:
  • other:

    The parse_failed to move from.

parse_failed&
operator = (
    parse_failed&& other
)
noexcept

Move-assigns a parse_failed into this one.

Parameters:
  • other:

    The parse_failed to move from.

type
get_type ()
const noexcept

Returns the type associated with this exception.



Copyright © 2022-2025 Daniel T. McGinnis

CCL was first published in 2022, and is still actively maintained.

This website was first published in 2022, and is still actively maintained.

This specific web page was first published in 2023.