From de950b0c43d371417c0ffe4d76fde80116e02db5 Mon Sep 17 00:00:00 2001 From: joakim-mf <97717999+joakim-mf@users.noreply.github.com> Date: Thu, 14 Sep 2023 10:14:19 +0100 Subject: [PATCH] Update lab2.html --- base/server/src/main/resources/webassets/labs/lab2.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/base/server/src/main/resources/webassets/labs/lab2.html b/base/server/src/main/resources/webassets/labs/lab2.html index 63688aa..83516d0 100644 --- a/base/server/src/main/resources/webassets/labs/lab2.html +++ b/base/server/src/main/resources/webassets/labs/lab2.html @@ -255,7 +255,7 @@
SELECT foo.*, user.user_name FROM foo, user
- The example returns everything from the foo table but only user_name from the foo table.
+ The example returns everything from the foo table but only user_name from the user table.
WHERE clauseDataAccessException (thrown by the database code). The WebApplicationException is built
into JAX-RS and can be used to set a specific error code. You can see this in action by doing a
request to /rest/nothing, Jersey
- will find to find a match for this resource and throw a WebApplicationException with code
+ will fail to find a match for this resource and throw a WebApplicationException with code
404.
Your code can also throw WebApplicationException. An example of this follows, consider
an implementation of the deleteFoo method: