Arcane  4.1.12.0
User documentation
Loading...
Searching...
No Matches
Arcane::CaseOptionError Class Reference

Error in the dataset. More...

#include <arcane/core/CaseOptionError.h>

Public Member Functions

 CaseOptionError (const TraceInfo &where, const String &node_name, const String &message, bool is_collective=false)
 Generic error.
const StringnodeName () const
const Stringmessage () const
bool isCollective () const
const TraceInfotrace () const

Static Public Member Functions

static void addInvalidTypeError (ICaseDocumentFragment *document, const TraceInfo &where, const String &node_name, const XmlNode &parent, const String &value, const String &expected_type)
 Error when a dataset value is not of the correct type. This error is collective.
static void addInvalidTypeError (ICaseDocumentFragment *document, const TraceInfo &where, const String &node_name, const XmlNode &parent, const String &value, const String &expected_type, StringConstArrayView valid_values)
 Error when a dataset value is not of the correct type. This error is collective.
static void addOptionNotFoundError (ICaseDocumentFragment *document, const TraceInfo &where, const String &node_name, const XmlNode &parent)
 Error when a dataset option is not found. This error is collective.
static void addError (ICaseDocumentFragment *document, const TraceInfo &where, const String &node_name, const String &message, bool is_collective=false)
 Generic error.
static void addWarning (ICaseDocumentFragment *document, const TraceInfo &where, const String &node_name, const String &message, bool is_collective=false)
 Generic error.

Detailed Description

Error in the dataset.

Definition at line 41 of file CaseOptionError.h.

Constructor & Destructor Documentation

◆ CaseOptionError()

Arcane::CaseOptionError::CaseOptionError ( const TraceInfo & where,
const String & node_name,
const String & message,
bool is_collective = false )

Generic error.

Definition at line 29 of file CaseOptionError.cc.

Referenced by addError(), addInvalidTypeError(), addInvalidTypeError(), addOptionNotFoundError(), and addWarning().

Member Function Documentation

◆ addError()

void Arcane::CaseOptionError::addError ( ICaseDocumentFragment * document,
const TraceInfo & where,
const String & node_name,
const String & message,
bool is_collective = false )
static

Generic error.

Definition at line 94 of file CaseOptionError.cc.

References Arcane::ICaseDocumentFragment::addError(), and CaseOptionError().

Referenced by Arcane::CaseOptions::read().

◆ addInvalidTypeError() [1/2]

void Arcane::CaseOptionError::addInvalidTypeError ( ICaseDocumentFragment * document,
const TraceInfo & where,
const String & node_name,
const XmlNode & parent,
const String & value,
const String & expected_type )
static

◆ addInvalidTypeError() [2/2]

void Arcane::CaseOptionError::addInvalidTypeError ( ICaseDocumentFragment * document,
const TraceInfo & where,
const String & node_name,
const XmlNode & parent,
const String & value,
const String & expected_type,
StringConstArrayView valid_values )
static

Error when a dataset value is not of the correct type. This error is collective.

Definition at line 75 of file CaseOptionError.cc.

References Arcane::ICaseDocumentFragment::addError(), CaseOptionError(), and Arcane::XmlNode::xpathFullName().

◆ addOptionNotFoundError()

void Arcane::CaseOptionError::addOptionNotFoundError ( ICaseDocumentFragment * document,
const TraceInfo & where,
const String & node_name,
const XmlNode & parent )
static

◆ addWarning()

void Arcane::CaseOptionError::addWarning ( ICaseDocumentFragment * document,
const TraceInfo & where,
const String & node_name,
const String & message,
bool is_collective = false )
static

◆ isCollective()

bool Arcane::CaseOptionError::isCollective ( ) const
inline

Definition at line 99 of file CaseOptionError.h.

◆ message()

const String & Arcane::CaseOptionError::message ( ) const
inline

Definition at line 97 of file CaseOptionError.h.

◆ nodeName()

const String & Arcane::CaseOptionError::nodeName ( ) const
inline

Definition at line 95 of file CaseOptionError.h.

◆ trace()

const TraceInfo & Arcane::CaseOptionError::trace ( ) const
inline

Definition at line 101 of file CaseOptionError.h.


The documentation for this class was generated from the following files: