@MessageBundle(projectCode="SRMSG",
length=5)
public interface HttpExceptions
Modifier and Type | Field and Description |
---|---|
static HttpExceptions |
ex |
Modifier and Type | Method and Description |
---|---|
IllegalArgumentException |
illegalArgumentInvalidVerb(String actualMethod) |
IllegalArgumentException |
illegalArgumentUrlNotSet() |
RuntimeException |
runtimePostInvalidStatus(String url,
int statusCode) |
IllegalArgumentException |
unableToFindSerializer(Class payloadClass,
List<String> supportedTypes) |
IllegalArgumentException |
unableToLoadClass(String className) |
static final HttpExceptions ex
@Message(id=16300, value="The `url` must be set") IllegalArgumentException illegalArgumentUrlNotSet()
@Message(id=16301, value="Invalid HTTP Verb: %s, only PUT and POST are supported") IllegalArgumentException illegalArgumentInvalidVerb(String actualMethod)
@Message(id=16302, value="HTTP request POST %s has not returned a valid status: %d") RuntimeException runtimePostInvalidStatus(String url, int statusCode)
@Message(id=16303, value="Unable to find a serializer for type: %s, supported types are: %s") IllegalArgumentException unableToFindSerializer(Class payloadClass, List<String> supportedTypes)
@Message(id=16304, value="Unable to load the class %s or unable to instantiate it") IllegalArgumentException unableToLoadClass(String className)
Copyright © 2018–2021 SmallRye. All rights reserved.