Skip to content

Commit

Permalink
fix: Fix error handling for invalid delivery addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
ArneLimburg committed Aug 17, 2023
1 parent faf8fc3 commit 2a0855a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2019 open knowledge GmbH
* Copyright 2019 - 2023 open knowledge GmbH
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -15,6 +15,7 @@
*/
package de.openknowledge.sample.address.infrastructure;

import javax.enterprise.context.ApplicationScoped;
import javax.validation.ValidationException;
import javax.ws.rs.core.Context;
import javax.ws.rs.core.Response;
Expand All @@ -23,6 +24,7 @@
import javax.ws.rs.ext.Provider;

@Provider
@ApplicationScoped
public class ValidationExceptionHandler implements ExceptionMapper<ValidationException> {

private static final String PROBLEM_JSON_TYPE = "application/problem+json";
Expand Down

0 comments on commit 2a0855a

Please sign in to comment.