0

In my code i have a lot of code like the following. I am wondering if it's a bad thing for my server and if it will cause the instance to restart.

if (opLoginId == loginId) {
      datastore.delete(key);
      return 0;
} else {
      throw new WebApplicationException(Response.Status.UNAUTHORIZED);
}

1 Answer 1

1

Unless these are being caught at some higher level (say, to turn them into the right HTTP response), then yes, you're killing your instance.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.