As explained in section A.2.5, the Java methods do not return error codes. The Java exceptions thrown instead are defined in section A.7.3.