Example usage for org.springframework.orm ObjectRetrievalFailureException toString

List of usage examples for org.springframework.orm ObjectRetrievalFailureException toString

Introduction

In this page you can find the example usage for org.springframework.orm ObjectRetrievalFailureException toString.

Prototype

public String toString() 

Source Link

Document

Returns a short description of this throwable.

Usage

From source file:es.emergya.actions.Authentication.java

@Transactional(propagation = Propagation.REQUIRED, readOnly = false, rollbackFor = Throwable.class)
public static void logOut() {
    try {/*from  ww w . j  av a 2 s. c om*/
        u = null;
        ClienteConectado actual = clienteConectadoHome.get(id);
        if (actual != null)
            clienteConectadoHome.remove(id);
    } catch (ObjectRetrievalFailureException t) {
        log.error("Parece que nos han echado, independientemente de nuestro logout. " + t.toString());
    } catch (Throwable t) {
        log.error("Error al hacer logout", t);
        // } finally {
        // id = nextId();
    }
}