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