1 package org.myoodb.exception; 25 26 public class NestedTransactionException extends TransactionException 27 { 28 private String m_objectType; 29 private String m_objectName; 30 private String m_objectOwner; 31 32 public NestedTransactionException(String message, String objectType, String objectName, String objectOwner) 33 { 34 super(message); 35 36 m_objectType = objectType; 37 m_objectName = objectName; 38 m_objectOwner = objectOwner; 39 } 40 41 public String objectType() 42 { 43 return m_objectType; 44 } 45 46 public String objectName() 47 { 48 return m_objectName; 49 } 50 51 public String objectOwner() 52 { 53 return m_objectOwner; 54 } 55 56 public String toString() 57 { 58 return super.toString() + " [" + m_objectType + "/" + m_objectName + "/" + m_objectOwner + "]"; 59 } 60 } 61 | Popular Tags |