Skip to content

Commit 913d0ed

Browse files
author
Julio Capote
committed
update readme for 1.1.0
1 parent 37c8195 commit 913d0ed

File tree

2 files changed

+27
-2
lines changed

2 files changed

+27
-2
lines changed

README.markdown

+26-1
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,31 @@ object App {
117117
val anView = new AnView
118118
render.view(anView).toFuture
119119
}
120+
121+
122+
/**
123+
* Custom Error Handling
124+
*
125+
* curl http://localhost:7070/error
126+
*/
127+
get("/error") { request =>
128+
1234/0
129+
render.plain("we never make it here").toFuture
130+
}
131+
132+
error { request =>
133+
render.status(500).plain("whoops!").toFuture
134+
}
135+
136+
137+
/**
138+
* Custom 404s
139+
*
140+
* curl http://localhost:7070/notfound
141+
*/
142+
notFound { request =>
143+
render.status(404).plain("not found yo").toFuture
144+
}
120145
}
121146

122147
val app = new ExampleApp
@@ -184,7 +209,7 @@ Add the dependency to your pom.xml
184209
<dependency>
185210
<groupId>com.twitter</groupId>
186211
<artifactId>finatra</artifactId>
187-
<version>1.0.3</version>
212+
<version>1.1.0</version>
188213
</dependency>
189214
```
190215

script/finatra/lib/base.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION=1.0.3
1+
VERSION=1.1.0
22
EXAMPLE_REPO=~/personal/finatra_example
33

44

0 commit comments

Comments
 (0)