Example usage for org.hibernate SessionException SessionException

List of usage examples for org.hibernate SessionException SessionException

Introduction

In this page you can find the example usage for org.hibernate SessionException SessionException.

Prototype

public SessionException(String message) 

Source Link

Document

Constructs a new SessionException with the given message.

Usage

From source file:com.eucalyptus.entities.EntityWrapper.java

License:Open Source License

public void commit() throws ConstraintViolationException {
    if (this.tx != null) {
        this.tx.commit();
        this.tx = null;
    } else {//from  www.j  a  v  a2s  .c  o  m
        throw new SessionException("Attempt to commit session which is already closed:  " + this.txStart);
    }
}