MCPcopy Create free account
hub / github.com/TheRealMJP/DeferredTexturing / GdiPlusException

Class GdiPlusException

SampleFramework12/v1.00/Exceptions.h:234–254  ·  view source on GitHub ↗

Exception thrown when a GDI+ function fails

Source from the content-addressed store, hash-verified

232
233// Exception thrown when a GDI+ function fails
234class GdiPlusException : public Exception
235{
236
237public:
238
239 // Obtains a string for the specified error code
240 GdiPlusException(Gdiplus::Status status) : errorCode(status)
241 {
242 message = GetGdiPlusErrorString(status);
243 }
244
245 // Retrieve the error code
246 Gdiplus::Status GetErrorCode() const throw ()
247 {
248 return errorCode;
249 }
250
251protected:
252
253 Gdiplus::Status errorCode; // The GDI+ error code
254};
255
256// Error-handling functions
257

Callers 1

GdiPlusCallFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected