![]() |
![]() |
|
|
#include <fastformat/exceptions.hpp>
This exception class represents a mismatch between the replacements specified in a format and the arguments presented to the formatting function.
Public Types | |
typedef fastformat_exception | parent_class_type |
Member Types. | |
typedef mismatched_replacements_exception | class_type |
This type. | |
typedef parent_class_type::string_type | string_type |
The string type. | |
Public Member Functions | |
mismatched_replacements_exception (char const *message, ff_replacement_code_t code, int numberOfReplacements, int firstMismatchedReplacementIndex) | |
Construction. | |
Public Attributes | |
const ff_replacement_code_t | code |
Attributes. | |
const int | numberOfReplacements |
The number of replacement parameters in the format. | |
const int | firstMismatchedReplacementIndex |
The index of the first mismatched replacement parameter. |
Member Types.
The parent exception class type
Reimplemented from fastformat_exception.
Reimplemented in missing_argument_exception, and unreferenced_argument_exception.
This type.
Reimplemented from fastformat_exception.
Reimplemented in missing_argument_exception, and unreferenced_argument_exception.
The string type.
Reimplemented from fastformat_exception.
Reimplemented in missing_argument_exception, and unreferenced_argument_exception.
mismatched_replacements_exception | ( | char const * | message, | |
ff_replacement_code_t | code, | |||
int | numberOfReplacements, | |||
int | firstMismatchedReplacementIndex | |||
) | [inline, explicit] |
Construction.
Constructs an exception with the given message
message | The message. May not be NULL | |
code | The code associated with the condition | |
numberOfReplacements | The number of replacement elements | |
firstMismatchedReplacementIndex | The index of the first mismatched replacement element |
const ff_replacement_code_t code |
Attributes.
The code indicating the cause of the problem
const int numberOfReplacements |
The number of replacement parameters in the format.
const int firstMismatchedReplacementIndex |
The index of the first mismatched replacement parameter.
|
|
FastFormat Library documentation © Matthew Wilson, 2006-2009 |
|