// Path: src/main/java/org/blackdread/filtersortjooqapi/exception/BadUsageApiException.java
// public class BadUsageApiException extends RuntimeException {
// 
//     public BadUsageApiException(String message) {
//         super(message);
//     }
// }
// 
// Path: src/main/java/org/blackdread/filtersortjooqapi/exception/FilteringApiException.java
// public class FilteringApiException extends BadUsageApiException {
// 
//     public FilteringApiException(final String message) {
//         super(message);
//     }
// }
// 
// Path: src/main/java/org/blackdread/filtersortjooqapi/exception/SortingApiException.java
// public class SortingApiException extends BadUsageApiException {
// 
//     public SortingApiException(final String message) {
//         super(message);
//     }
// }


import org.blackdread.filtersortjooqapi.exception.BadUsageApiException;
import org.blackdread.filtersortjooqapi.exception.FilteringApiException;
import org.blackdread.filtersortjooqapi.exception.SortingApiException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.ResponseStatus;
package fullOne;


/**
 * Controller advice to translate the server side exceptions to client-friendly json structures.
 */
@ControllerAdvice
public class ExceptionTranslator {

    private final Logger log = LoggerFactory.getLogger(ExceptionTranslator.class);


// Path: src/main/java/org/blackdread/filtersortjooqapi/exception/BadUsageApiException.java
// public class BadUsageApiException extends RuntimeException {
// 
//     public BadUsageApiException(String message) {
//         super(message);
//     }
// }
// 
// Path: src/main/java/org/blackdread/filtersortjooqapi/exception/FilteringApiException.java
// public class FilteringApiException extends BadUsageApiException {
// 
//     public FilteringApiException(final String message) {
//         super(message);
//     }
// }
// 
// Path: src/main/java/org/blackdread/filtersortjooqapi/exception/SortingApiException.java
// public class SortingApiException extends BadUsageApiException {
// 
//     public SortingApiException(final String message) {
//         super(message);
//     }
// }


// Path: examples/fullOne/ExceptionTranslator.java
import org.blackdread.filtersortjooqapi.exception.BadUsageApiException;
import org.blackdread.filtersortjooqapi.exception.FilteringApiException;
import org.blackdread.filtersortjooqapi.exception.SortingApiException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.ResponseStatus;

package fullOne;


/**
 * Controller advice to translate the server side exceptions to client-friendly json structures.
 */
@ControllerAdvice
public class ExceptionTranslator {

    private final Logger log = LoggerFactory.getLogger(ExceptionTranslator.class);


    @ExceptionHandler(FilteringApiException.class)