MCPcopy Create free account
hub / github.com/NeuralNetworkVerification/Marabou / Error

Method Error

src/common/Error.cpp:23–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21#include <string.h>
22
23Error::Error( const char *errorClass, int code )
24 : _code( code )
25{
26 memset( _errorClass, 0, sizeof( _userMessage ) );
27 memset( _userMessage, 0, sizeof( _userMessage ) );
28
29 strncpy( _errorClass, errorClass, BUFFER_SIZE - 1 );
30 _errno = T::errorNumber();
31}
32
33Error::Error( const char *errorClass, int code, const char *userMessage )
34 : _code( code )

Callers

nothing calls this directly

Calls 1

errorNumberFunction · 0.85

Tested by

no test coverage detected