Hello! In general it is better to throw Exceptions instead of returning error codes. But how's that when calling a RMI-method. Would that still be bad practice? Yupp
SCJP 1.4<br />SCJD (BS2.1.2)
posted 11 years ago
Hello Well, Returning error codes is definately a bad practice any time. Then the reason Exception classes were created would be defeated. About the remote Exceptions, there exists RemoteExceptions that can be thrown within your code, so i dont think throwing error codes would be a good idea. It is totally a bad practice.