Skip to content
This repository has been archived by the owner on Apr 21, 2023. It is now read-only.

Commit

Permalink
Release 1.2.0
Browse files Browse the repository at this point in the history
Signed-off-by: Ali Dehghani <[email protected]>
  • Loading branch information
alimate committed Oct 30, 2018
1 parent 351e8eb commit 2ee6c4e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 13 deletions.
27 changes: 15 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,19 @@ Built on top of Spring Boot's great exception handling mechanism, the `errors-sp

### Download

Download the [latest JAR](https://search.maven.org/remotecontent?filepath=me/alidg/errors-spring-boot-starter/1.1.0/errors-spring-boot-starter-1.1.0.jar) or grab via Maven:
Download the [latest JAR](https://search.maven.org/remotecontent?filepath=me/alidg/errors-spring-boot-starter/1.2.0/errors-spring-boot-starter-1.2.0.jar) or grab via Maven:

```
<dependency>
<groupId>me.alidg</groupId>
<artifactId>errors-spring-boot-starter</artifactId>
<version>1.1.0</version>
<version>1.2.0</version>
</dependency>
```

or Gradle:
```
compile "me.alidg:errors-spring-boot-starter:1.1.0"
compile "me.alidg:errors-spring-boot-starter:1.2.0"
```

### Prerequisites
Expand Down Expand Up @@ -243,16 +243,19 @@ method's return value. The `ExposeAsArg` annotation is applicable to:
### Spring MVC
By default, a custom `WebErrorHandler` is registered to handle common exceptions thrown by Spring MVC:

| Exception | Status Code | Error Code | Exposed Args |
| Exception | Status Code | Error Code | Exposed Args |
|:-----------------------------------------:|:-----------:|:-----------------------------:|:----------------------------------------:|
| `HttpMessageNotReadableException` | 400 | `web.invalid_or_missing_body` | - |
| `HttpMediaTypeNotAcceptableException` | 406 | `web.not_acceptable` | List of acceptable MIME types |
| `HttpMediaTypeNotSupportedException` | 415 | `web.unsupported_media_type` | The unsupported content type |
| `HttpRequestMethodNotSupportedException` | 405 | `web.method_not_allowed` | The invalid HTTP method |
| `MissingServletRequestParameterException` | 400 | `web.missing_parameter` | Name and type of the missing query Param |
| `MissingServletRequestPartException` | 400 | `web.missing_part` | Missing request part name |
| `NoHandlerFoundException` | 404 | `web.no_handler` | The request path |
| `others` | 500 | `unknown_error` | - |
| `HttpMessageNotReadableException` | 400 | `web.invalid_or_missing_body` | - |
| `HttpMediaTypeNotAcceptableException` | 406 | `web.not_acceptable` | List of acceptable MIME types |
| `HttpMediaTypeNotSupportedException` | 415 | `web.unsupported_media_type` | The unsupported content type |
| `HttpRequestMethodNotSupportedException` | 405 | `web.method_not_allowed` | The invalid HTTP method |
| `MissingServletRequestParameterException` | 400 | `web.missing_parameter` | Name and type of the missing query Param |
| `MissingServletRequestPartException` | 400 | `web.missing_part` | Missing request part name |
| `NoHandlerFoundException` | 404 | `web.no_handler` | The request path |
| `MissingRequestHeaderException` | 400 | `web.missing_header` | The missing header name |
| `MissingRequestCookieException` | 400 | `web.missing_cookie` | The missing cookie name |
| `MissingMatrixVariableException` | 400 | `web.missing_matrix_variable` | The missing matrix variable name |
| `others` | 500 | `unknown_error` | - |

### Spring Security
When Spring Security is present on the classpath, a `WebErrorHandler` implementation would be responsible to handle
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>me.alidg</groupId>
<artifactId>errors-spring-boot-starter</artifactId>
<version>1.2.0-SNAPSHOT</version>
<version>1.2.0</version>

<name>${project.groupId}:${project.artifactId}</name>
<description>
Expand Down

0 comments on commit 2ee6c4e

Please sign in to comment.