vraptor-error-control

Sonatype helps open source projects to set up Maven repositories on https://oss.sonatype.org/

GroupId

GroupId

br.com.caelum.vraptor
ArtifactId

ArtifactId

vraptor-error-control
Last Version

Last Version

4.0.3
Release Date

Release Date

Type

Type

jar
Description

Description

vraptor-error-control
Sonatype helps open source projects to set up Maven repositories on https://oss.sonatype.org/
Project URL

Project URL

http://github.com/caelum/vraptor-error-control
Source Code Management

Source Code Management

http://github.com/caelum/vraptor-error-control

Download vraptor-error-control

How to add to project

<!-- https://jarcasting.com/artifacts/br.com.caelum.vraptor/vraptor-error-control/ -->
<dependency>
    <groupId>br.com.caelum.vraptor</groupId>
    <artifactId>vraptor-error-control</artifactId>
    <version>4.0.3</version>
</dependency>
// https://jarcasting.com/artifacts/br.com.caelum.vraptor/vraptor-error-control/
implementation 'br.com.caelum.vraptor:vraptor-error-control:4.0.3'
// https://jarcasting.com/artifacts/br.com.caelum.vraptor/vraptor-error-control/
implementation ("br.com.caelum.vraptor:vraptor-error-control:4.0.3")
'br.com.caelum.vraptor:vraptor-error-control:jar:4.0.3'
<dependency org="br.com.caelum.vraptor" name="vraptor-error-control" rev="4.0.3">
  <artifact name="vraptor-error-control" type="jar" />
</dependency>
@Grapes(
@Grab(group='br.com.caelum.vraptor', module='vraptor-error-control', version='4.0.3')
)
libraryDependencies += "br.com.caelum.vraptor" % "vraptor-error-control" % "4.0.3"
[br.com.caelum.vraptor/vraptor-error-control "4.0.3"]

Dependencies

compile (5)

Group / Artifact Type Version
commons-httpclient : commons-httpclient jar 3.1
br.com.caelum : vraptor jar 4.2.0-RC5
javax.enterprise : cdi-api jar 1.1
br.com.caelum.vraptor : vraptor-simplemail jar 4.1.0-RC4
joda-time : joda-time jar 2.0

provided (1)

Group / Artifact Type Version
org.mortbay.jetty : servlet-api jar 3.0.20100224

test (4)

Group / Artifact Type Version
junit : junit jar 4.8.2
org.mockito : mockito-all jar 1.9.5
org.hamcrest : hamcrest-library jar 1.3
org.hamcrest : hamcrest-core jar 1.3

Project Modules

There are no modules declared in this project.

vraptor-error-control

Build status

A simple vraptor plugin that allows you to real time control error messages sending them by email

installing

Vraptor-error-control.jar can be downloaded from maven's repository, or configured in any compatible tool:

	<dependency>
		<groupId>br.com.caelum.vraptor</groupId>
		<artifactId>vraptor-error-control</artifactId>
		<version>4.0.2</version>
		<scope>compile</scope>
	</dependency>

Dependencies

To use VRaptor Error Control you need to put vraptor-simplemail at your classpath

Configuring

In your environment.properties(vraptor-environment files), you need to configure the following vraptor-simplemail' keys:

	vraptor.simplemail.main.server
	vraptor.simplemail.main.port
	vraptor.simplemail.main.tls
	vraptor.simplemail.main.from.name
	vraptor.simplemail.main.from
	vraptor.simplemail.main.username
	vraptor.simplemail.main.password
	vraptor.simplemail.main.error-mailing-list

To customize the email's subject, use the key bellow:

	vraptor.errorcontrol.error.subject

You can display when the email was sent by adding a joda time pattern using the following key:

	vraptor.errorcontrol.date.joda.pattern

In your web.xml file, you need to map the error-code 500 to /error500:

	<error-page>
		<error-code>500</error-code>
		<location>/error500</location>
	</error-page>

After sending the email, the vraptor-error-control will forward the request to jsp/error/500.jsp and include the stack trace as an attribute of the request with the key "stackTrace".

help

Get help from vraptor developers and the community at vraptor mailing list.

br.com.caelum.vraptor

Caelum

Versions

Version
4.0.3
4.0.2
4.0.1
4.0.0.Final
4.0.0-RC2
1.1.2
1.1.1
1.1.0
1.0.3
1.0.2