◐ Shell
clean mode source ↗

std::domain_error - cppreference.com

Da cppreference.com.

Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate.

La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui.

Click here for the English version of this page

<metanoindex/>

<tbody> </tbody>

Elemento definito nell'header

<stdexcept>

class domain_error;

Definisce un tipo di oggetto da gettare come eccezione. Si segnala gli errori che si verificano a causa di una funzione matematica non è definito per il valore dell'argomento (ad esempio std::sqrt(-1)).

Original:

Defines a type of object to be thrown as exception. It reports errors that arise because a mathematical function is not defined for the value of the argument (e.g. std::sqrt(-1)).

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

cpp/error/exceptioncpp/error/logic error

Inheritance diagram

Membri funzioni

costruisce l'oggetto eccezione

Original:

constructs the exception object

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.


(metodo pubblico) [modifica]

Inherited from std::exception

Member functions

distrugge l'oggetto eccezione

Original:

destructs the exception object

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.


(metodo pubblico virtuale) [modifica]

restituisce una stringa esplicativa

Original:

returns an explanatory string

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.


(metodo pubblico virtuale) [modifica]