Skip to content

Commit

Permalink
Replace use of TeiidProcessingException
Browse files Browse the repository at this point in the history
... with TeiidDesignerProcessingException

* Instead of using the teiid class TeiidProcessingException, replace all
  usage with a new TeiidDesignerProcessingException
  • Loading branch information
Paul Richardson committed Oct 12, 2012
1 parent 69ca25d commit 9ef78ae
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 74 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
/*
* 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.core.designer;

/**
* @since 8.0
*/
public class TeiidDesignerProcessingException extends TeiidDesignerException {

private static final long serialVersionUID = 1L;

/**
*
*/
public TeiidDesignerProcessingException() {
super();
}

/**
* @param message
*/
public TeiidDesignerProcessingException(String message) {
super(message);
}

/**
* @param childException
*/
public TeiidDesignerProcessingException(Throwable childException) {
super(childException);
}

/**
* @param childException
* @param message
*/
public TeiidDesignerProcessingException(Throwable childException, String message) {
super(childException, message);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

package org.teiid.designer.metadata.runtime.api;

import org.teiid.core.BundleUtil;


/**
Expand Down Expand Up @@ -38,16 +37,6 @@ public VirtualDatabaseDoesNotExistException( String message ) {
super( message );
}

/**
* Construct an instance with the message and error code specified.
*
* @param message A message describing the exception
* @param code The error code
*/
public VirtualDatabaseDoesNotExistException(BundleUtil.Event code, String message ) {
super( code, message );
}

/**
* Construct an instance from a message and an exception to chain to this one.
*
Expand All @@ -56,18 +45,6 @@ public VirtualDatabaseDoesNotExistException(BundleUtil.Event code, String messag
*/
public VirtualDatabaseDoesNotExistException( Exception e, String message ) {
super( e, message );
}

/**
* Construct an instance from a message and a code and an exception to
* chain to this one.
*
* @param e An exception to nest within this one
* @param message A message describing the exception
* @param code A code denoting the exception
*/
public VirtualDatabaseDoesNotExistException( BundleUtil.Event code, Exception e, String message ) {
super( code, e, message );
}
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,13 @@

package org.teiid.designer.metadata.runtime.api;

import org.teiid.core.BundleUtil;
import org.teiid.core.TeiidProcessingException;
import org.teiid.core.designer.TeiidDesignerProcessingException;
/**
* The base exception from which all Runtime Metadata Exceptions extend.
*
* @since 8.0
*/
public class VirtualDatabaseException extends TeiidProcessingException {
public class VirtualDatabaseException extends TeiidDesignerProcessingException {

/**
*/
Expand All @@ -40,16 +39,6 @@ public VirtualDatabaseException( String message ) {
super( message );
}

/**
* Construct an instance with the message and error code specified.
*
* @param message A message describing the exception
* @param code The error code
*/
public VirtualDatabaseException( BundleUtil.Event code, String message ) {
super( code, message );
}

/**
* Construct an instance from an exception to chain to this one.
*
Expand All @@ -67,17 +56,5 @@ public VirtualDatabaseException(Exception e) {
public VirtualDatabaseException( Exception e, String message ) {
super( e, message );
}

/**
* Construct an instance from a message and a code and an exception to
* chain to this one.
*
* @param e An exception to nest within this one
* @param message A message describing the exception
* @param code A code denoting the exception
*/
public VirtualDatabaseException( BundleUtil.Event code, Exception e, String message ) {
super(code, e, message);
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

package org.teiid.designer.metadata.runtime.exception;

import org.teiid.core.BundleUtil;
import org.teiid.designer.metadata.runtime.api.VirtualDatabaseException;

/**
Expand Down Expand Up @@ -38,17 +37,6 @@ public VirtualDatabaseDoesNotExistException( String message ) {
super(message);
}

/**
* Construct an instance with the message and error code specified.
*
* @param message A message describing the exception
* @param code The error code
*/
public VirtualDatabaseDoesNotExistException( BundleUtil.Event code,
String message ) {
super(code, message);
}

/**
* Construct an instance from a message and an exception to chain to this one.
*
Expand All @@ -59,17 +47,4 @@ public VirtualDatabaseDoesNotExistException( Exception e,
String message ) {
super(e, message);
}

/**
* Construct an instance from a message and a code and an exception to chain to this one.
*
* @param e An exception to nest within this one
* @param message A message describing the exception
* @param code A code denoting the exception
*/
public VirtualDatabaseDoesNotExistException( BundleUtil.Event code,
Exception e,
String message ) {
super(code, e, message);
}
}

0 comments on commit 9ef78ae

Please sign in to comment.