/* * JBoss, Home of Professional Open Source. * * See the LEGAL.txt file distributed with this work for information regarding copyright ownership and licensing. * * See the AUTHORS.txt file distributed with this work for a full listing of individual contributors. */ package org.teiid.designer.metadata.runtime.api; import org.teiid.core.designer.TeiidDesignerProcessingException; /** * The base exception from which all Runtime Metadata Exceptions extend. * * @since 8.0 */ public class VirtualDatabaseException extends TeiidDesignerProcessingException { /** */ private static final long serialVersionUID = 1L; public static final String NO_MODELS = "1"; //$NON-NLS-1$ public static final String MODEL_NON_DEPLOYABLE_STATE = "2"; //$NON-NLS-1$ public static final String VDB_NON_DEPLOYABLE_STATE = "3"; //$NON-NLS-1$ /** * No-arg costructor required by Externalizable semantics */ public VirtualDatabaseException() { super(); } /** * Construct an instance with the message specified. * * @param message A message describing the exception */ public VirtualDatabaseException( String message ) { super( message ); } /** * Construct an instance from an exception to chain to this one. * * @param e An exception to nest within this one */ public VirtualDatabaseException(Exception e) { super(e); } /** * Construct an instance from a message and an exception to chain to this one. * * @param code A code denoting the exception * @param e An exception to nest within this one */ public VirtualDatabaseException( Exception e, String message ) { super( e, message ); } }