001    package org.tynamo.exception;
002    
003    /**
004     * Runtime exceptions for Tynamo
005     *
006     * @author Chris Nelson
007     */
008    public class TynamoRuntimeException extends RuntimeException
009    {
010    
011            private Class entityType;
012    
013            public TynamoRuntimeException(Exception e, Class entityType)
014            {
015                    super(e);
016                    this.entityType = entityType;
017            }
018    
019            public TynamoRuntimeException(String message)
020            {
021                    super(message);
022            }
023    
024            public TynamoRuntimeException(String message, Throwable cause)
025            {
026                    super(message, cause);
027            }
028    
029            public TynamoRuntimeException(Throwable cause)
030            {
031                    super(cause);
032            }
033    
034            public Class getEntityType() {
035                    return entityType;
036            }
037    }