public final class ExceptionFactory extends Object
| 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.ApiAlreadyExistsException |
apiAlreadyExistsException(String apiName)
Creates an exception from an API name.
|
static io.apiman.manager.api.rest.contract.exceptions.ApiDefinitionNotFoundException |
apiDefinitionNotFoundException(String apiId,
String version)
Creates an exception from an API id and version.
|
static io.apiman.manager.api.rest.contract.exceptions.ApiNotFoundException |
apiNotFoundException(String apiId)
Creates an exception from an API id.
|
static io.apiman.manager.api.rest.contract.exceptions.ApiVersionAlreadyExistsException |
apiVersionAlreadyExistsException(String apiName,
String version)
Creates an exception from an API name.
|
static io.apiman.manager.api.rest.contract.exceptions.ApiVersionNotFoundException |
apiVersionNotFoundException(String apiId,
String version)
Creates an exception from an API id and version.
|
static io.apiman.manager.api.rest.contract.exceptions.ClientAlreadyExistsException |
clientAlreadyExistsException(String clientName)
Creates an exception from an client name.
|
static io.apiman.manager.api.rest.contract.exceptions.ClientNotFoundException |
clientNotFoundException(String clientId)
Creates an exception from an client id.
|
static io.apiman.manager.api.rest.contract.exceptions.ClientVersionAlreadyExistsException |
clientVersionAlreadyExistsException(String clientName,
String version)
Creates an exception from an client name.
|
static io.apiman.manager.api.rest.contract.exceptions.ClientVersionNotFoundException |
clientVersionNotFoundException(String clientId,
String version)
Creates an exception from an client 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.EntityStillActiveException |
entityStillActiveExceptionApiVersions(Iterator<io.apiman.manager.api.beans.apis.ApiVersionBean> apis) |
static io.apiman.manager.api.rest.contract.exceptions.EntityStillActiveException |
entityStillActiveExceptionApiVersions(List<io.apiman.manager.api.beans.apis.ApiVersionBean> apis) |
static io.apiman.manager.api.rest.contract.exceptions.EntityStillActiveException |
entityStillActiveExceptionClientVersions(Iterator<io.apiman.manager.api.beans.clients.ClientVersionBean> clientApps) |
static io.apiman.manager.api.rest.contract.exceptions.EntityStillActiveException |
entityStillActiveExceptionClientVersions(List<io.apiman.manager.api.beans.clients.ClientVersionBean> clientApps) |
static io.apiman.manager.api.rest.contract.exceptions.EntityStillActiveException |
entityStillActiveExceptionContracts(Iterator<io.apiman.manager.api.beans.contracts.ContractBean> contracts) |
static io.apiman.manager.api.rest.contract.exceptions.EntityStillActiveException |
entityStillActiveExceptionContracts(List<io.apiman.manager.api.beans.contracts.ContractBean> contracts) |
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.InvalidApiStatusException |
invalidApiStatusException()
Creates an invalid API status exception.
|
static io.apiman.manager.api.rest.contract.exceptions.InvalidClientStatusException |
invalidClientStatusException()
Creates an invalid client status exception.
|
static io.apiman.manager.api.rest.contract.exceptions.InvalidMetricCriteriaException |
invalidMetricCriteriaException(String message)
Creates an exception.
|
static io.apiman.manager.api.rest.contract.exceptions.InvalidNameException |
invalidNameException(String message)
Creates an exception.
|
static io.apiman.manager.api.rest.contract.exceptions.InvalidPlanStatusException |
invalidPlanStatusException()
Creates an invalid plan status exception.
|
static io.apiman.manager.api.rest.contract.exceptions.InvalidPlanStatusException |
invalidPlanStatusException(List<io.apiman.manager.api.beans.summary.PlanVersionSummaryBean> lockedPlans)
Creates an invalid plan status exception.
|
static io.apiman.manager.api.rest.contract.exceptions.InvalidVersionException |
invalidVersionException(String message)
Creates an 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.PlanVersionAlreadyExistsException |
planVersionAlreadyExistsException(String planName,
String version)
Creates an exception from an plan name.
|
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.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.ClientAlreadyExistsException clientAlreadyExistsException(String clientName)
clientName - the client namepublic static final io.apiman.manager.api.rest.contract.exceptions.ClientVersionAlreadyExistsException clientVersionAlreadyExistsException(String clientName, String version)
clientName - the client nameversion - the versionpublic static final io.apiman.manager.api.rest.contract.exceptions.ContractAlreadyExistsException contractAlreadyExistsException()
public static final io.apiman.manager.api.rest.contract.exceptions.ClientNotFoundException clientNotFoundException(String clientId)
clientId - the client 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.ClientVersionNotFoundException clientVersionNotFoundException(String clientId, String version)
clientId - the client idversion - the client versionpublic static final io.apiman.manager.api.rest.contract.exceptions.InvalidClientStatusException invalidClientStatusException()
public static final io.apiman.manager.api.rest.contract.exceptions.ApiAlreadyExistsException apiAlreadyExistsException(String apiName)
apiName - the API namepublic static final io.apiman.manager.api.rest.contract.exceptions.ApiVersionAlreadyExistsException apiVersionAlreadyExistsException(String apiName, String version)
apiName - the API nameversion - the versionpublic static final io.apiman.manager.api.rest.contract.exceptions.ApiNotFoundException apiNotFoundException(String apiId)
apiId - the API idpublic static final io.apiman.manager.api.rest.contract.exceptions.ApiVersionNotFoundException apiVersionNotFoundException(String apiId, String version)
apiId - the API idversion - the API versionpublic static final io.apiman.manager.api.rest.contract.exceptions.ApiDefinitionNotFoundException apiDefinitionNotFoundException(String apiId, String version)
apiId - the API idversion - the API versionpublic static final io.apiman.manager.api.rest.contract.exceptions.InvalidApiStatusException invalidApiStatusException()
public static final io.apiman.manager.api.rest.contract.exceptions.InvalidPlanStatusException invalidPlanStatusException()
public static io.apiman.manager.api.rest.contract.exceptions.InvalidPlanStatusException invalidPlanStatusException(List<io.apiman.manager.api.beans.summary.PlanVersionSummaryBean> lockedPlans)
lockedPlans - the list of locked planspublic 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.PlanVersionAlreadyExistsException planVersionAlreadyExistsException(String planName, String version)
planName - the plan nameversion - the versionpublic 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 coordinatespublic static final io.apiman.manager.api.rest.contract.exceptions.InvalidMetricCriteriaException invalidMetricCriteriaException(String message)
message - the messagepublic static final io.apiman.manager.api.rest.contract.exceptions.InvalidNameException invalidNameException(String message)
message - the messagepublic static final io.apiman.manager.api.rest.contract.exceptions.InvalidVersionException invalidVersionException(String message)
message - the messagepublic static io.apiman.manager.api.rest.contract.exceptions.EntityStillActiveException entityStillActiveExceptionContracts(List<io.apiman.manager.api.beans.contracts.ContractBean> contracts)
public static io.apiman.manager.api.rest.contract.exceptions.EntityStillActiveException entityStillActiveExceptionClientVersions(List<io.apiman.manager.api.beans.clients.ClientVersionBean> clientApps)
public static io.apiman.manager.api.rest.contract.exceptions.EntityStillActiveException entityStillActiveExceptionApiVersions(List<io.apiman.manager.api.beans.apis.ApiVersionBean> apis)
public static io.apiman.manager.api.rest.contract.exceptions.EntityStillActiveException entityStillActiveExceptionContracts(Iterator<io.apiman.manager.api.beans.contracts.ContractBean> contracts)
public static io.apiman.manager.api.rest.contract.exceptions.EntityStillActiveException entityStillActiveExceptionClientVersions(Iterator<io.apiman.manager.api.beans.clients.ClientVersionBean> clientApps)
public static io.apiman.manager.api.rest.contract.exceptions.EntityStillActiveException entityStillActiveExceptionApiVersions(Iterator<io.apiman.manager.api.beans.apis.ApiVersionBean> apis)
Copyright © 2016 JBoss, a division of Red Hat. All rights reserved.