Back to project page ormada.
The source code is released under:
Copyright (c) 2012 Jesse Rosalia Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Sof...
If you think the Android project ormada listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package org.ormada.exception; /*from w w w . j av a 2 s. com*/ /** * This exception is thrown when attempting to save a reference to an object that has not been saved. * * @author Jesse Rosalia * */ public class UnsavedReferenceException extends RuntimeException { public UnsavedReferenceException() { } public UnsavedReferenceException(Class<?> ownerClass, String fieldName) { super(buildMessage(ownerClass, fieldName)); } private static String buildMessage(Class<?> ownerClass, String fieldName) { return "Reference to unsaved entity: " + ownerClass.getCanonicalName() + "#" + fieldName; } }