Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • If you are throwing exceptions, what purpose to the return values provide (other than, of course, the object returned from the read operation)? A create method that completes successfully should create the object. A create method that fails should throw an exception. I'm hard-pressed to imagine a case where you would want the method to complete successfully without successfully creating the object and to rely on the client to check the return method and figure out that something went wrong. Commented Jan 6, 2014 at 20:36
  • What kind/style you want to use with your API? Do you want to use HTTP metadata like in REST or do you want to return everything (errors, status, data.) as object? Commented Jan 6, 2014 at 23:06