Skip to content

Commit

Permalink
Add/fix all exceptions
Browse files Browse the repository at this point in the history
git-svn-id: http://anonsvn.jboss.org/repos/weld/ri/trunk@146 1c488680-804c-0410-94cd-c6b725194a0e
  • Loading branch information
pmuir committed Oct 25, 2008
1 parent 86e1ef8 commit 6c51fc4
Show file tree
Hide file tree
Showing 19 changed files with 737 additions and 9 deletions.
@@ -0,0 +1,47 @@
/*
* JBoss, Home of Professional Open Source
* Copyright 2008, Red Hat Middleware LLC, and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/


package javax.webbeans;

/**
*
* @author Pete Muir
*/
public class AmbiguousDependencyException extends DeploymentException
{

public AmbiguousDependencyException()
{
}

public AmbiguousDependencyException(String message, Throwable throwable)
{
super(message, throwable);
}

public AmbiguousDependencyException(String message)
{
super(message);
}

public AmbiguousDependencyException(Throwable throwable)
{
super(throwable);
}

}
Expand Up @@ -24,11 +24,12 @@
* @author Shane Bryzak
*/

public class ContextNotActiveException extends RuntimeException
public class ContextNotActiveException extends ExecutionException
{

public ContextNotActiveException()
{
super();
}

public ContextNotActiveException(String message)
Expand Down
48 changes: 48 additions & 0 deletions webbeans-api/src/main/java/javax/webbeans/CreationException.java
@@ -0,0 +1,48 @@
/*
* JBoss, Home of Professional Open Source
* Copyright 2008, Red Hat Middleware LLC, and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package javax.webbeans;

/**
*
* @author Pete Muir
*/

public class CreationException extends ExecutionException
{

public CreationException()
{

}

public CreationException(String message)
{
super(message);
}

public CreationException(Throwable cause)
{
super(cause);
}

public CreationException(String message, Throwable cause)
{
super(message, cause);
}

}
49 changes: 49 additions & 0 deletions webbeans-api/src/main/java/javax/webbeans/DefinitionException.java
@@ -0,0 +1,49 @@
/*
* JBoss, Home of Professional Open Source
* Copyright 2008, Red Hat Middleware LLC, and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package javax.webbeans;

/**
*
* @author Pete Muir
*/
public class DefinitionException extends RuntimeException
{

public DefinitionException()
{
super();
}

public DefinitionException(String message, Throwable throwable)
{
super(message, throwable);
}

public DefinitionException(String message)
{
super(message);
}

public DefinitionException(Throwable throwable)
{
super(throwable);
}



}
35 changes: 29 additions & 6 deletions webbeans-api/src/main/java/javax/webbeans/DeploymentException.java
@@ -1,5 +1,26 @@
/*
* JBoss, Home of Professional Open Source
* Copyright 2008, Red Hat Middleware LLC, and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package javax.webbeans;

/**
*
* @author Pete Muir
*/
public class DeploymentException extends RuntimeException
{

Expand All @@ -8,19 +29,21 @@ public DeploymentException()
super();
}

public DeploymentException(String arg0, Throwable arg1)
public DeploymentException(String message, Throwable throwable)
{
super(arg0, arg1);
super(message, throwable);
}

public DeploymentException(String arg0)
public DeploymentException(String message)
{
super(arg0);
super(message);
}

public DeploymentException(Throwable arg0)
public DeploymentException(Throwable throwable)
{
super(arg0);
super(throwable);
}



}
Expand Up @@ -22,7 +22,7 @@
*
* @author David Allen
*/
public class DuplicateBindingTypeException extends RuntimeException
public class DuplicateBindingTypeException extends ExecutionException
{

private static final long serialVersionUID = 4194175477451120383L;
Expand Down
22 changes: 22 additions & 0 deletions webbeans-api/src/main/java/javax/webbeans/ExecutionException.java
@@ -1,5 +1,27 @@
/*
* JBoss, Home of Professional Open Source
* Copyright 2008, Red Hat Middleware LLC, and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/


package javax.webbeans;

/**
*
* @author Pete Muir
*/
public class ExecutionException extends RuntimeException
{

Expand Down
@@ -0,0 +1,50 @@
/*
* JBoss, Home of Professional Open Source
* Copyright 2008, Red Hat Middleware LLC, and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/


package javax.webbeans;

/**
*
* @author Pete Muir
*/
public class InconsistentSpecializationException extends DeploymentException
{

public InconsistentSpecializationException()
{
super();
}

public InconsistentSpecializationException(String message, Throwable throwable)
{
super(message, throwable);
}

public InconsistentSpecializationException(String message)
{
super(message);
}

public InconsistentSpecializationException(Throwable throwable)
{
super(throwable);
}



}
@@ -0,0 +1,48 @@
/*
* JBoss, Home of Professional Open Source
* Copyright 2008, Red Hat Middleware LLC, and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package javax.webbeans;

/**
*
* @author Pete Muir
*/

public class NonexistentConstructorException extends DefinitionException
{

public NonexistentConstructorException()
{

}

public NonexistentConstructorException(String message)
{
super(message);
}

public NonexistentConstructorException(Throwable cause)
{
super(cause);
}

public NonexistentConstructorException(String message, Throwable cause)
{
super(message, cause);
}

}

0 comments on commit 6c51fc4

Please sign in to comment.