Example usage for org.springframework.security.access AccessDeniedException toString

List of usage examples for org.springframework.security.access AccessDeniedException toString

Introduction

In this page you can find the example usage for org.springframework.security.access AccessDeniedException toString.

Prototype

public String toString() 

Source Link

Document

Returns a short description of this throwable.

Usage

From source file:com.sshdemo.common.web.AccessDeniedAction.java

@Override
public String execute() {

    HttpServletRequest request = ServletActionContext.getRequest();
    AccessDeniedException exception = (AccessDeniedException) request
            .getAttribute(WebAttributes.ACCESS_DENIED_403);

    this.errorDetails = exception.getMessage();
    this.errorTrace = exception.toString();

    return SUCCESS;
}