Creates a new Doc instance with a delegate which is invoked when an error occurred.
The delegate must be in the form of
void error_callback(uint error_no, uint detail_no)
, where error_no it's the number's error and detail_no it's the detail's number
The delegate wich is invoked
the new Doc instance
void error_handler(uint error_no, uint detail_no) { writefln("error_no: %s, detail_no: %s", error_no, detail_no); } Doc document = new Doc( &errorHandler );
See Implementation
Creates a new Doc instance with a delegate which is invoked when an error occurred.
The delegate must be in the form of
, where error_no it's the number's error and detail_no it's the detail's number