Example usage for org.hibernate InstantiationException getMessage

List of usage examples for org.hibernate InstantiationException getMessage

Introduction

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

Prototype

@Override
    public String getMessage() 

Source Link

Usage

From source file:org.unitime.timetable.onlinesectioning.server.AbstractServer.java

License:Open Source License

@Override
public <X extends OnlineSectioningAction> X createAction(Class<X> clazz) {
    try {/*from   w w w. j a  va2 s. c  o  m*/
        return clazz.newInstance();
    } catch (InstantiationException e) {
        throw new SectioningException(e.getMessage(), e);
    } catch (IllegalAccessException e) {
        throw new SectioningException(e.getMessage(), e);
    }
}