MCPcopy Create free account
hub / github.com/BabitMF/bmf / BMFErrorStr

Function BMFErrorStr

bmf/sdk/cpp_sdk/src/error_define.cpp:18–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16#include <bmf/sdk/error_define.h>
17
18const char *BMFErrorStr(int status) {
19 static char buf[256];
20
21 switch (status) {
22 case BMF_StsOk:
23 return "No Error";
24 case BMF_StsBackTrace:
25 return "Backtrace";
26 case BMF_StsError:
27 return "Unspecified error";
28 case BMF_StsInternal:
29 return "Internal error";
30 case BMF_StsNoMem:
31 return "Insufficient memory";
32 case BMF_StsBadArg:
33 return "Bad argument";
34 case BMF_StsNoConv:
35 return "Iterations do not converge";
36 case BMF_StsAutoTrace:
37 return "Autotrace call";
38 case BMF_StsBadSize:
39 return "Incorrect size of input array";
40 case BMF_StsNullPtr:
41 return "Null pointer";
42 case BMF_StsDivByZero:
43 return "Division by zero occurred";
44 case BMF_BadStep:
45 return "Image step is wrong";
46 case BMF_StsInplaceNotSupported:
47 return "Inplace operation is not supported";
48 case BMF_StsObjectNotFound:
49 return "Requested object was not found";
50 case BMF_BadDepth:
51 return "Input image depth is not supported by function";
52 case BMF_StsUnmatchedFormats:
53 return "Formats of input arguments do not match";
54 case BMF_StsUnmatchedSizes:
55 return "Sizes of input arguments do not match";
56 case BMF_StsOutOfRange:
57 return "One of the arguments\' values is out of range";
58 case BMF_StsUnsupportedFormat:
59 return "Unsupported format or combination of formats";
60 case BMF_BadCOI:
61 return "Input COI is not supported";
62 case BMF_BadNumChannels:
63 return "Bad number of channels";
64 case BMF_StsBadFlag:
65 return "Bad flag (parameter or structure field)";
66 case BMF_StsBadPoint:
67 return "Bad parameter of type BMFPoint";
68 case BMF_StsBadMask:
69 return "Bad type of mask argument";
70 case BMF_StsParseError:
71 return "Parsing error";
72 case BMF_StsNotImplemented:
73 return "The function/feature is not implemented";
74 case BMF_StsBadMemBlock:
75 return "Memory block has been corrupted";

Callers 1

formatMessageMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected