38 #include <vips/vips.h>
42 class VIPS_CPLUSPLUS_API
VError :
public std::exception {
46 VError(
const std::string &what ) : _what( what ) {}
47 VError() : _what( vips_error_buffer() ) {}
48 virtual ~
VError()
throw() {}
51 virtual const char *what()
const throw() {
return _what.c_str(); }
52 void ostream_print( std::ostream & )
const;