57 const char*
what()
const throw ()
59 return "Couldn't find the given file!";
66 const char*
what()
const throw ()
68 return "The obj given couldn't be read!";
75 const char*
what()
const throw ()
77 return "C++ Exception";
89 struct NoCost :
public std::exception
92 NoCost(
const std::string& cost_name) {
93 cost_type =
"Cost type " + cost_name +
" doesn't exist in the graph!";
96 const char*
what()
const throw ()
Custom exceptions and error codes used interally by DHARTAPI.
HF_STATUS
A set of error codes standard throughout every DHARTAPI codebase.
@ INVALID_OBJ
The given path did not point to a valid obj file.
@ OK
Operation was successful.
@ MALFORMED_DB
The database exists, but is in some kind of error state.
@ OUT_OF_MEMORY
Ran out of memory during the last operation.
@ NOT_FOUND
The path given did not lead to any file.
@ MISSING_DEPEND
A dependency for this object is missing.
@ GENERIC_ERROR
Not sure what happened here (If this gets thrown, either fix it or give it a status code!...
@ NOT_COMPRESSED
Graph wasn't compressed!
@ INVALID_COST
The given cost name does not exist in the database.
@ DB_BUSY
The database is busy (is there some external connection?).
@ INVALID_PTR
One or more of the given pointers didn't lead to anything.
@ NO_GRAPH
This requires a valid graph in the DB to execute successfully.
@ NO_COST
There is no cost with the given name in the given graph.
@ NOT_IMPLEMENTED
This function hasn't been implemented yet.
@ OUT_OF_RANGE
Tried to reference something not in the given container.
@ NO_PATH
There is no path between the start and end points.
Thrown when desired file is not found.
const char * what() const
The OBJ file was not valid.
const char * what() const
Thrown when a dependency is missing such as Embree.
const char * what() const
Thrown when a dependency is missing such as Embree.
NoCost(const std::string &cost_name)
const char * what() const