Package com.denimgroup.threadfix.data.entities

Examples of com.denimgroup.threadfix.data.entities.ExceptionLog


    private final SanitizedLogger log = new SanitizedLogger(QueueErrorHandler.class);

    @Override
    public void handleError(Throwable throwable) {
        ExceptionLog exceptionLog = new ExceptionLog(throwable);

        exceptionLogService.storeExceptionLog(exceptionLog);

        log.error("Uncaught exception - logging with ID " + exceptionLog.getUUID() + ".");
    }
View Full Code Here


    @ResponseStatus(HttpStatus.OK)
    @ExceptionHandler(value = RestException.class)
    public @ResponseBody RestResponse<String> resolveRestException(Exception ex) {

        ExceptionLog exceptionLog = new ExceptionLog(ex);

        exceptionLogService.storeExceptionLog(exceptionLog);

        log.error("Uncaught exception - logging with ID " + exceptionLog.getUUID() + ".");

        assert ex instanceof RestException;

        return failure(((RestException) ex).getResponseString());
    }
View Full Code Here

    @ResponseStatus(HttpStatus.OK)
    @ExceptionHandler(value = HibernateJdbcException.class)
    public @ResponseBody RestResponse<String> resolveException(HibernateJdbcException ex) {

        ExceptionLog exceptionLog = new ExceptionLog(ex);

        exceptionLogService.storeExceptionLog(exceptionLog);

        log.error("Uncaught exception - logging with ID " + exceptionLog.getUUID() + ".");

        if(ex.getRootCause().getClass().equals(PacketTooBigException.class)){
            return failure("Scan is too large to be handled by your MySQL Server. You can remediate this " +
                    "by increasing the 'max_allowed_packet' size for your MySQL Server instance.");
        else {
View Full Code Here

                "ControllerAdvice received a RestException in its generic Exception handler";

        assert !(ex instanceof AccessDeniedException) :
                "ControllerAdvice received a AccessDeniedException in its generic Exception handler";

        ExceptionLog exceptionLog = new ExceptionLog(ex);

        exceptionLogService.storeExceptionLog(exceptionLog);

        log.error("Uncaught exception - logging with ID " + exceptionLog.getUUID() + ".");

        ModelAndView mav = new ModelAndView("exception", "uuid", exceptionLog.getUUID());
        mav.addObject("logId", exceptionLog.getId());
        return mav;
    }
View Full Code Here

TOP

Related Classes of com.denimgroup.threadfix.data.entities.ExceptionLog

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.