Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

spring-j-exception

This project is an open source project and I am looking forward to your issues.

Resolve over 1500 JException related runtime exceptions that exist in a spring framework.


Description

Spring-JException is designed to reduce the inconvenience of handling redundant exceptions and creating error codes by creating a new exception class and wrapping HTTP-related exceptions with runtime exceptions.

The JExceptionFactory class makes it easy to handle custom HTTP-related exceptions.

The inconvenient task of inserting exception information into the HttpPServletResponse using the exception filter can be easily handled by registering JExceptionFilter as blank.

JException provides all exception classes for HTTP methods from 400 to 500. Additionally, you can create a domain name by adding it to an associated exception to handle domain names and HTTP-related exceptions.


Feature

JExceptionFactory

In this way, you can create a JException using the JExceptionFactory.

class Service {
    fun execute() {
        val optionalCustomJException = jExceptionFactory.createJException(entity, status)
        
        if(condition)
            throw optionalCustomJException.get(1)
    }
}

JExceptionFilter

@Configuration
class JConfiguration {
    
    @Bean
    fun jexceptionFilter() = JexceptionFilter()
}

About

Resolve over 1500 JException related runtime exceptions that exist in a spring framework.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors