Write here your abstract
1 Ax.ext.net.exception
The package Ax.ext.net.exception expose javax.ws.rs.WebApplications exceptions. The exceptions are intended to be usde wihtin a js called from a REST call as it will return the corresponding http status code
1.1 Ax.ext.net.exception.BadRequestException
A runtime exception indicating a bad client request.
The server will respond with a 400 status code
Example
Copy
throw new Ax.ext.net.exception.BadRequestException("Invalid parameter XXXX");
1.2 Ax.ext.net.exception.ForbiddenException
A runtime exception indicating that an access to a resource requested by a client has been forbidden by the server.
The server will respond with a 403 status code
Example
Copy
throw new Ax.ext.net.exception.ForbiddenException("Insuficient user roles");
1.3 Ax.ext.net.exception.NotFoundException
A runtime exception indicating a resource requested by a client was not found on the server.
The server will respond with a 404 status code
Example
Copy
throw new Ax.ext.net.exception.NotFoundException("Resource not found");
1.4 Ax.ext.net.exception.NotAuthorizedException
A runtime exception indicating request authorization failure.
The server will respond with a 401 status code
Example
Copy
throw new Ax.ext.net.exception.NotAuthorizedException("user not allowed");