public final class ExceptionFactory extends Object
| Constructor and Description |
|---|
ExceptionFactory() |
| Modifier and Type | Method and Description |
|---|---|
static io.apiman.manager.api.rest.contract.exceptions.ActionException |
actionException(String message)
Creates an action exception.
|
static io.apiman.manager.api.rest.contract.exceptions.ActionException |
actionException(String message,
Exception cause)
Creates an action exception.
|
static io.apiman.manager.api.rest.contract.exceptions.ApplicationAlreadyExistsException |
applicationAlreadyExistsException(String applicationName)
Creates an exception from an application name.
|
static io.apiman.manager.api.rest.contract.exceptions.ApplicationNotFoundException |
applicationNotFoundException(String applicationId)
Creates an exception from an application id.
|
static io.apiman.manager.api.rest.contract.exceptions.ApplicationVersionNotFoundException |
applicationVersionNotFoundException(String applicationId,
String version)
Creates an exception from an application id and version.
|
static io.apiman.manager.api.rest.contract.exceptions.ContractAlreadyExistsException |
contractAlreadyExistsException()
Creates an exception.
|
static io.apiman.manager.api.rest.contract.exceptions.ContractNotFoundException |
contractNotFoundException(Long contractId)
Creates an exception from an contract id.
|
static io.apiman.manager.api.rest.contract.exceptions.GatewayAlreadyExistsException |
gatewayAlreadyExistsException(String gatewayName)
Creates an exception from an gateway name.
|
static io.apiman.manager.api.rest.contract.exceptions.GatewayNotFoundException |
gatewayNotFoundException(String gatewayId)
Creates an exception from an gateway id.
|
static io.apiman.manager.api.rest.contract.exceptions.InvalidApplicationStatusException |
invalidApplicationStatusException()
Creates an invalid service status exception.
|
static io.apiman.manager.api.rest.contract.exceptions.InvalidServiceStatusException |
invalidPlanStatusException()
Creates an invalid plan status exception.
|
static io.apiman.manager.api.rest.contract.exceptions.InvalidServiceStatusException |
invalidServiceStatusException()
Creates an invalid service status exception.
|
static io.apiman.manager.api.rest.contract.exceptions.MemberNotFoundException |
memberNotFoundException(String memberId)
Creates an exception from an member id.
|
static io.apiman.manager.api.rest.contract.exceptions.NotAuthorizedException |
notAuthorizedException()
Creates a not authorized exception.
|
static io.apiman.manager.api.rest.contract.exceptions.OrganizationAlreadyExistsException |
organizationAlreadyExistsException(String organizationName)
Creates an exception from an organization name.
|
static io.apiman.manager.api.rest.contract.exceptions.OrganizationNotFoundException |
organizationNotFoundException(String organizationId)
Creates an exception from an organization id.
|
static io.apiman.manager.api.rest.contract.exceptions.PlanAlreadyExistsException |
planAlreadyExistsException(String planName)
Creates an exception from an plan name.
|
static io.apiman.manager.api.rest.contract.exceptions.PlanNotFoundException |
planNotFoundException(String planId)
Creates an exception from an plan id.
|
static io.apiman.manager.api.rest.contract.exceptions.PlanVersionNotFoundException |
planVersionNotFoundException(String planId,
String version)
Creates an exception from an plan id and version.
|
static io.apiman.manager.api.rest.contract.exceptions.PluginAlreadyExistsException |
pluginAlreadyExistsException()
Creates an exception from an plugin name.
|
static io.apiman.manager.api.rest.contract.exceptions.PluginNotFoundException |
pluginNotFoundException(Long pluginId)
Creates an exception from an plugin id.
|
static io.apiman.manager.api.rest.contract.exceptions.PluginResourceNotFoundException |
pluginResourceNotFoundException(String resourceName,
io.apiman.common.plugin.PluginCoordinates coordinates)
Creates an exception.
|
static io.apiman.manager.api.rest.contract.exceptions.PolicyDefinitionAlreadyExistsException |
policyDefAlreadyExistsException(String policyDefName)
Creates an exception from an policyDef name.
|
static io.apiman.manager.api.rest.contract.exceptions.PolicyDefinitionInvalidException |
policyDefInvalidException(String message)
Creates an exception.
|
static io.apiman.manager.api.rest.contract.exceptions.PolicyDefinitionNotFoundException |
policyDefNotFoundException(String policyDefId)
Creates an exception from an policyDef id.
|
static io.apiman.manager.api.rest.contract.exceptions.PolicyNotFoundException |
policyNotFoundException(long policyId)
Creates an exception from a policy id.
|
static io.apiman.manager.api.rest.contract.exceptions.RoleAlreadyExistsException |
roleAlreadyExistsException(String roleId)
Creates an exception from an role id.
|
static io.apiman.manager.api.rest.contract.exceptions.RoleNotFoundException |
roleNotFoundException(String roleId)
Creates an exception from a username.
|
static io.apiman.manager.api.rest.contract.exceptions.ServiceAlreadyExistsException |
serviceAlreadyExistsException(String serviceName)
Creates an exception from an service name.
|
static io.apiman.manager.api.rest.contract.exceptions.ServiceDefinitionNotFoundException |
serviceDefinitionNotFoundException(String serviceId,
String version)
Creates an exception from an service id and version.
|
static io.apiman.manager.api.rest.contract.exceptions.ServiceNotFoundException |
serviceNotFoundException(String serviceId)
Creates an exception from an service id.
|
static io.apiman.manager.api.rest.contract.exceptions.ServiceVersionNotFoundException |
serviceVersionNotFoundException(String serviceId,
String version)
Creates an exception from an service id and version.
|
static io.apiman.manager.api.rest.contract.exceptions.UserNotFoundException |
userNotFoundException(String username)
Creates an exception from a username.
|
public static final io.apiman.manager.api.rest.contract.exceptions.UserNotFoundException userNotFoundException(String username)
username - the usernamepublic static final io.apiman.manager.api.rest.contract.exceptions.NotAuthorizedException notAuthorizedException()
public static final io.apiman.manager.api.rest.contract.exceptions.OrganizationAlreadyExistsException organizationAlreadyExistsException(String organizationName)
organizationName - the organization namepublic static final io.apiman.manager.api.rest.contract.exceptions.OrganizationNotFoundException organizationNotFoundException(String organizationId)
organizationId - the organization idpublic static final io.apiman.manager.api.rest.contract.exceptions.RoleAlreadyExistsException roleAlreadyExistsException(String roleId)
roleId - the role idpublic static final io.apiman.manager.api.rest.contract.exceptions.RoleNotFoundException roleNotFoundException(String roleId)
roleId - the role idpublic static final io.apiman.manager.api.rest.contract.exceptions.ApplicationAlreadyExistsException applicationAlreadyExistsException(String applicationName)
applicationName - the application namepublic static final io.apiman.manager.api.rest.contract.exceptions.ContractAlreadyExistsException contractAlreadyExistsException()
public static final io.apiman.manager.api.rest.contract.exceptions.ApplicationNotFoundException applicationNotFoundException(String applicationId)
applicationId - the application idpublic static final io.apiman.manager.api.rest.contract.exceptions.ContractNotFoundException contractNotFoundException(Long contractId)
contractId - the contract idpublic static final io.apiman.manager.api.rest.contract.exceptions.ApplicationVersionNotFoundException applicationVersionNotFoundException(String applicationId, String version)
applicationId - the application idversion - the application versionpublic static final io.apiman.manager.api.rest.contract.exceptions.InvalidApplicationStatusException invalidApplicationStatusException()
public static final io.apiman.manager.api.rest.contract.exceptions.ServiceAlreadyExistsException serviceAlreadyExistsException(String serviceName)
serviceName - the service namepublic static final io.apiman.manager.api.rest.contract.exceptions.ServiceNotFoundException serviceNotFoundException(String serviceId)
serviceId - the service idpublic static final io.apiman.manager.api.rest.contract.exceptions.ServiceVersionNotFoundException serviceVersionNotFoundException(String serviceId, String version)
serviceId - the service idversion - the service versionpublic static final io.apiman.manager.api.rest.contract.exceptions.ServiceDefinitionNotFoundException serviceDefinitionNotFoundException(String serviceId, String version)
serviceId - the service idversion - the service versionpublic static final io.apiman.manager.api.rest.contract.exceptions.InvalidServiceStatusException invalidServiceStatusException()
public static final io.apiman.manager.api.rest.contract.exceptions.InvalidServiceStatusException invalidPlanStatusException()
public static final io.apiman.manager.api.rest.contract.exceptions.MemberNotFoundException memberNotFoundException(String memberId)
memberId - the member idpublic static final io.apiman.manager.api.rest.contract.exceptions.PlanAlreadyExistsException planAlreadyExistsException(String planName)
planName - the plan namepublic static final io.apiman.manager.api.rest.contract.exceptions.PlanNotFoundException planNotFoundException(String planId)
planId - the plan idpublic static final io.apiman.manager.api.rest.contract.exceptions.PlanVersionNotFoundException planVersionNotFoundException(String planId, String version)
planId - the plan idversion - the version idpublic static final io.apiman.manager.api.rest.contract.exceptions.ActionException actionException(String message)
message - the exception messagepublic static io.apiman.manager.api.rest.contract.exceptions.ActionException actionException(String message, Exception cause)
message - the exception messagecause - the exception causepublic static final io.apiman.manager.api.rest.contract.exceptions.PolicyNotFoundException policyNotFoundException(long policyId)
policyId - the policy idpublic static final io.apiman.manager.api.rest.contract.exceptions.PolicyDefinitionAlreadyExistsException policyDefAlreadyExistsException(String policyDefName)
policyDefName - the policy definition namepublic static final io.apiman.manager.api.rest.contract.exceptions.PolicyDefinitionNotFoundException policyDefNotFoundException(String policyDefId)
policyDefId - the policy definition idpublic static final io.apiman.manager.api.rest.contract.exceptions.PolicyDefinitionInvalidException policyDefInvalidException(String message)
message - the exception messagepublic static final io.apiman.manager.api.rest.contract.exceptions.GatewayAlreadyExistsException gatewayAlreadyExistsException(String gatewayName)
gatewayName - the gateway namepublic static final io.apiman.manager.api.rest.contract.exceptions.GatewayNotFoundException gatewayNotFoundException(String gatewayId)
gatewayId - the gateway idpublic static final io.apiman.manager.api.rest.contract.exceptions.PluginAlreadyExistsException pluginAlreadyExistsException()
public static final io.apiman.manager.api.rest.contract.exceptions.PluginNotFoundException pluginNotFoundException(Long pluginId)
pluginId - the plugin idpublic static final io.apiman.manager.api.rest.contract.exceptions.PluginResourceNotFoundException pluginResourceNotFoundException(String resourceName, io.apiman.common.plugin.PluginCoordinates coordinates)
resourceName - the resource namecoordinates - the maven coordinatesCopyright © 2015 JBoss, a division of Red Hat. All rights reserved.