MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / checkForExceptions

Method checkForExceptions

src/common/DecFloat.cpp:98–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96 }
97
98 void checkForExceptions()
99 {
100 USHORT unmaskedExceptions = decSt.decExtFlag & decContextGetStatus(this);
101 if (!unmaskedExceptions)
102 return;
103
104 decContextZeroStatus(this);
105
106 for (Dec2fb* e = dec2fb; e->decError; ++e)
107 {
108 // Arg::Gds(isc_arith_except) as first vector element ?
109 if (e->decError & unmaskedExceptions)
110 Arg::Gds(dblError ? e->fbDoubleError : e->fbError).raise();
111 }
112 }
113
114private:
115 DecimalStatus decSt;

Callers

nothing calls this directly

Calls 4

decContextGetStatusFunction · 0.85
decContextZeroStatusFunction · 0.85
GdsClass · 0.85
raiseMethod · 0.45

Tested by

no test coverage detected