org.keycloak.models.sessions.jpa

## Class PersistenceExceptionConverter

- java.lang.Object
- - org.keycloak.models.sessions.jpa.PersistenceExceptionConverter

- All Implemented Interfaces:
    InvocationHandler

      public class PersistenceExceptionConverter
      extends Object
      implements InvocationHandler

  Author:
    Stian Thorgersen

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static ModelException` | `convert(Throwable t)`
    `static javax.persistence.EntityManager` | `create(javax.persistence.EntityManager em)`
    `Object` | `invoke(Object proxy, Method method, Object[] args)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### create

          public static javax.persistence.EntityManager create(javax.persistence.EntityManager em)

    - #### invoke

          public Object invoke(Object proxy,
                      Method method,
                      Object[] args)
                        throws Throwable

      Specified by:
        `invoke` in interface `InvocationHandler`
      Throws:
        `Throwable`

    - #### convert

          public static ModelException convert(Throwable t)

Copyright © 2014. All Rights Reserved.