Skip to content

YoshitoONISHI/ofxException

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ofxException

Useful tools for C++ exception

/// exceptions will be catched from this line
OFX_BEGIN_EXCEPTION_HANDLING

/// some processes

if (error) {
	/// throw an exception with message
    ofxThrowException(ofxException, "Error message!");
}
    
/// some processes
    
if (error) {
    /// throw an exception with format
    ofxThrowExceptionf(ofxException, "Error format! %d, %f", 123, 4.567);
}
    
/// to this line   
OFX_END_EXCEPTION_HANDLING

About

Useful tools for C++ exception

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages