nlib
|
Sets and stores the error status of the XML parser. More...
#include "nn/nlib/exi/ExiErrorStatus.h"
Public Types | |
enum | ErrorValue { OK = 0, OUT_OF_MEMORY, ARGUMENT_ERROR, IO_ERROR, UNEXPECTED_EOS, STREAM_DETACHED, ILLEGAL_CHARACTER, INTERNAL_ERROR, NOT_SUPPORTED, DUPLICATE_ATTRIBUTE, RESERVED_PREFIX, UNDECLARING_PREFIX, ATTRIBUTE_DEFAULT_NS, ILLEGAL_COMMENT, ILLEGAL_PI, ILLEGAL_BINARY, ILLEGAL_BINARY_IDX, ILLEGAL_BINARY_EVT, SYNTAX_ERROR, ILLEGAL_BINARY_HDR, FUNC_NOT_AVAILABLE } |
Enumerates error statuses. More... | |
Public Member Functions | |
ExiErrorStatus () noexcept | |
Instantiates the object. | |
ErrorValue | GetError () const noexcept |
Gets a value that indicates the error status. More... | |
int | GetLineNo () const noexcept |
Returns the line number of the code that generated the error. | |
const char * | GetFileName () const noexcept |
Returns the filename of the code that generated the error. More... | |
bool | SetError (ErrorValue e, int line, const char *filename) noexcept |
Sets an error. More... | |
void | Reset () noexcept |
Resets the error status. This is not used under normal circumstances. | |
operator bool () const | |
Returns true if an error has not occurred. | |
Sets and stores the error status of the XML parser.
Definition at line 17 of file ExiErrorStatus.h.
Enumerates error statuses.
Definition at line 19 of file ExiErrorStatus.h.
|
inlinenoexcept |
Gets a value that indicates the error status.
ErrorValue
type value. Definition at line 45 of file ExiErrorStatus.h.
|
inlinenoexcept |
Returns the filename of the code that generated the error.
Definition at line 47 of file ExiErrorStatus.h.
|
noexcept |
Sets an error.
[in] | e | An error value. |
[in] | line | Specifies the line number. |
[in] | filename | Specifies the filename. |
true
if the specified error status was set.NEXI_SET_ERROR
macro within the internals of the XML parser. It returns false
if an error status was already in effect, in which case it does not set the specified error. © 2012-2016 Nintendo Co., Ltd. All rights reserved.