Example usage for org.apache.commons.lang3 NotImplementedException getLocalizedMessage

List of usage examples for org.apache.commons.lang3 NotImplementedException getLocalizedMessage

Introduction

In this page you can find the example usage for org.apache.commons.lang3 NotImplementedException getLocalizedMessage.

Prototype

public String getLocalizedMessage() 

Source Link

Document

Creates a localized description of this throwable.

Usage

From source file:org.apereo.openlrs.controllers.xapi.XAPIExceptionHandlerAdvice.java

@ExceptionHandler(NotImplementedException.class)
@ResponseStatus(value = HttpStatus.NOT_IMPLEMENTED)
@ResponseBody/* w w  w  .ja  v  a2 s.c om*/
public XAPIErrorInfo handleNotImplementedException(final HttpServletRequest request,
        final NotImplementedException e) {
    final XAPIErrorInfo result = new XAPIErrorInfo(HttpStatus.NOT_IMPLEMENTED, request,
            e.getLocalizedMessage());
    this.logException(e);
    this.logError(result);
    return result;
}