@MessageBundle(projectCode="AG_CONTROLLER")
public interface ExceptionBundle
AeroGearLogger for that.| Modifier and Type | Field and Description |
|---|---|
static ExceptionBundle |
MESSAGES |
| Modifier and Type | Method and Description |
|---|---|
PaginationRequestException |
invalidPagingRequest(long offset,
long limit) |
MissingRequestParameterException |
missingParameterInRequest(String paramName) |
RuntimeException |
multivaluedParamsUnsupported(String parameterName) |
javax.servlet.ServletException |
mustRunInsideAContainer() |
RuntimeException |
noConsumerForMediaType(Parameter<?> parameter,
Collection<Consumer> consumers,
Set<String> supportedMediaTypes) |
RuntimeException |
noResponderForRequestedMediaType(String acceptHeader,
Responders responders) |
RuntimeException |
noRoutesAvailable() |
RuntimeException |
responderDoesNotHaveNoArgsCtor(Class<?> javaClass) |
RuntimeException |
routeNotFound(RequestMethod method,
String requestURI,
Set<String> acceptHeaders) |
static final ExceptionBundle MESSAGES
@LogMessage(level=FATAL)
@Message(id=1,
value="must be run inside a Servlet container")
javax.servlet.ServletException mustRunInsideAContainer()
@LogMessage(level=ERROR)
@Message(id=4,
value="No route found for method: \'%s\', requested URI: \'%s\', Accept: \'%s\'")
RuntimeException routeNotFound(RequestMethod method,
String requestURI,
Set<String> acceptHeaders)
@LogMessage(level=ERROR)
@Message(id=9,
value="oops, multivalued params not supported yet. Parameter name: \'%s\'")
RuntimeException multivaluedParamsUnsupported(String parameterName)
@LogMessage(level=ERROR)
@Message(id=10,
value="Parameter: \'%s\' was missing from Request")
MissingRequestParameterException missingParameterInRequest(String paramName)
@LogMessage(level=ERROR)
@Message(id=11,
value="No Responder was found that matched the Accept Header: \'%s\'. The following Responders are registered: \'%s\'")
RuntimeException noResponderForRequestedMediaType(String acceptHeader,
Responders responders)
@LogMessage(level=ERROR)
@Message(id=12,
value="No Consumer found for Parameter: \'%s\'. The registered Consumers were: \'%s\'. Please add a Consumer for one the media types supported by the route: %s.")
RuntimeException noConsumerForMediaType(Parameter<?> parameter,
Collection<Consumer> consumers,
Set<String> supportedMediaTypes)
@LogMessage(level=ERROR)
@Message(id=13,
value="Invalid Paging Request: offset \'%s\', limit \'%s\'")
PaginationRequestException invalidPagingRequest(long offset,
long limit)
@LogMessage(level=ERROR)
@Message(id=14,
value="The class \'%s\', does not have a no-args constructor which is required by CDI.")
RuntimeException responderDoesNotHaveNoArgsCtor(Class<?> javaClass)
@LogMessage(level=ERROR)
@Message(id=15,
value="No routes were found in the deployment. Please verify that you have implemented RoutingModule, and that the deployment has a beans.xml file in WEB-INF")
RuntimeException noRoutesAvailable()
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.