1. A system, comprising: a processor; and a memory comprising program instructions, wherein the program instructions are executable by the processor to implement a program configured to: call an API function of a library; and obtain an error trace for the API function; wherein the error trace includes one or more error trace elements, wherein each error trace element includes information describing a particular error generated during execution of the API function.