aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTschaen, Brendan <ctschaen@att.com>2019-03-20 13:53:28 -0400
committerTschaen, Brendan <ctschaen@att.com>2019-03-20 13:53:28 -0400
commit1c2d702dea2f632a2b7b2516fd29315633976390 (patch)
tree24ee0a66f006482a17928341e9a4dc90f3314864 /src
parent4d6e2a982cc0ee48aca9d8531424d795e44842c9 (diff)
Respond error codes responses for wrong urls
Change-Id: I7fddb09af825755394b0f75e993bc9ea64a8c82d Issue-ID: MUSIC-368 Signed-off-by: Tschaen, Brendan <ctschaen@att.com>
Diffstat (limited to 'src')
-rwxr-xr-xsrc/main/java/org/onap/music/JerseyConfig.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/org/onap/music/JerseyConfig.java b/src/main/java/org/onap/music/JerseyConfig.java
index 1b5f034a..b3118469 100755
--- a/src/main/java/org/onap/music/JerseyConfig.java
+++ b/src/main/java/org/onap/music/JerseyConfig.java
@@ -20,6 +20,7 @@ import io.swagger.jaxrs.config.BeanConfig;
import io.swagger.jaxrs.listing.ApiListingResource;
import io.swagger.jaxrs.listing.SwaggerSerializers;
import org.glassfish.jersey.server.ResourceConfig;
+import org.onap.music.exceptions.MusicExceptionMapper;
import org.onap.music.rest.*;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
@@ -32,6 +33,7 @@ import javax.annotation.PostConstruct;
public JerseyConfig() {
this.registerEndpoints();
+ register(MusicExceptionMapper.class);
}
@PostConstruct public void init() {