6. An apparatus comprising: a computer-readable storage device to store a library having a set of application programming interfaces to interface an application and a logical volume manager (LVM), wherein the set of application programming interfaces comprises a set of error reporting interfaces that are configured to report an error using a handle corresponding to an object and a plurality of error reporting handles; and a processing device to execute the application in operation with the LVM, and wherein the processing device is to: initialize a handle for a logical object; retrieve the logical object for the application using the handle; execute a function in the application to act on the logical object; determine if an error occurred resulting from executing the function; if there is an error, report the error using the handle and the plurality of error reporting handles, wherein one of the plurality of error reporting handles comprises an error code associated with the error, wherein another one of the plurality of error reporting handles comprises an error string in a natural language describing the error, and wherein another one of the plurality of error reporting handles comprises a section of programming code of the function associated with the error; and if there is no error, release the logical object from the handle and return the handle to the application.
6. An apparatus comprising: a computer-readable storage device to store a library having a set of application programming interfaces to interface an application and a logical volume manager (LVM), wherein the set of application programming interfaces comprises a set of error reporting interfaces that are configured to report an error using a handle corresponding to an object and a plurality of error reporting handles; and a processing device to execute the application in operation with the LVM, and wherein the processing device is to: initialize a handle for a logical object; retrieve the logical object for the application using the handle; execute a function in the application to act on the logical object; determine if an error occurred resulting from executing the function; if there is an error, report the error using the handle and the plurality of error reporting handles, wherein one of the plurality of error reporting handles comprises an error code associated with the error, wherein another one of the plurality of error reporting handles comprises an error string in a natural language describing the error, and wherein another one of the plurality of error reporting handles comprises a section of programming code of the function associated with the error; and if there is no error, release the logical object from the handle and return the handle to the application. 8. The apparatus of claim 6 , wherein the processing device writes the error string, the piece of programming code associated with the error, and the error code associated with the error into a file.