Example usage for org.hibernate.boot.archive.spi ArchiveException ArchiveException

List of usage examples for org.hibernate.boot.archive.spi ArchiveException ArchiveException

Introduction

In this page you can find the example usage for org.hibernate.boot.archive.spi ArchiveException ArchiveException.

Prototype

public ArchiveException(String message, Throwable cause) 

Source Link

Document

Constructs an ArchiveException

Usage

From source file:org.jboss.as.jpa.hibernate5.VirtualFileInputStreamAccess.java

License:Apache License

@Override
public InputStream accessInputStream() {
    try {//from w ww  .java  2  s .c  o  m
        return virtualFile.openStream();
    } catch (IOException e) {
        throw new ArchiveException("Unable to open VirtualFile-based InputStream", e);
    }
}