Open Argoday opened 12 years ago
1 - Returned Error code with non-const parameter return
Requires named-parameter passing, ex:
Image<T> img;
if( Image::IO::read("test.png",img) == ErrorCode::Error ) {
//Error occured
}
2 - Non-const parameter Error Code
Requires named error code checking, ex:
ErrorCode e;
Image<T> img = Image::IO::read("test.png",e);
if( e == ErrorCode::Error) {
//Error occured
}
Error reporting is not currently handled in ALIB ... obviously this needs to change, however I have not decided on a strategy to support error reporting.
Some of the things to consider: