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 BaseWebService
  • Constructor Details

    • ErrorWebService

      public ErrorWebService()
  • Method Details

    • 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
    • report

      @POST @Path("/report/") public void report(@QueryParam("sid") String sid, @QueryParam("message") String message)
      Logs an error to the log file for reporting
      Parameters:
      sid - The SID from getSession
      message - The message to log