Class ErrorWebService
- java.lang.Object
-
- org.apache.openmeetings.webservice.BaseWebService
-
- org.apache.openmeetings.webservice.ErrorWebService
-
@Service("errorWebService") @Produces("application/json") @Path("/error") public class ErrorWebService extends BaseWebServiceThe Service contains methods to get localized errors- Author:
- solomax
-
-
Field Summary
-
Fields inherited from class org.apache.openmeetings.webservice.BaseWebService
fileDao, roomDao, sessionDao, userDao
-
-
Constructor Summary
Constructors Constructor Description ErrorWebService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServiceResultget(String key, long lang)loads an Error-Object.voidreport(String sid, String message)Logs an error to the log file for reporting
-
-
-
Method Detail
-
get
@GET @Path("/{key}/{lang}") public ServiceResult get(@PathParam("key") String key, @PathParam("lang") long lang)loads an Error-Object. If a Method returns a negative Result, its an Error-id, it needs a languageId to specify in which language you want to display/read the error-message. English has the Language-ID one, for different one see the list of languages- Parameters:
key- the error key for ex. `error.unknown`lang- The id of the language- Returns:
- - error with the code given
-
-