Component lifecycle exceptions

Common base class + exceptions for shutdown and destruction
This commit is contained in:
Emmanuel BENOîT 2015-09-17 09:15:59 +02:00
parent 99687c68eb
commit 8314429023
5 changed files with 104 additions and 2 deletions

View file

@ -0,0 +1,34 @@
package info.ebenoit.ebul.cmp;
public class ComponentDestructionException
extends ComponentLifecycleException
{
private static final long serialVersionUID = 629175189766144505L;
public ComponentDestructionException( )
{
super( );
}
public ComponentDestructionException( final String message , final Throwable cause )
{
super( message , cause );
}
public ComponentDestructionException( final String message )
{
super( message );
}
public ComponentDestructionException( final Throwable cause )
{
super( cause );
}
}

View file

@ -2,7 +2,7 @@ package info.ebenoit.ebul.cmp;
public class ComponentInitialisationException
extends ComponentException
extends ComponentLifecycleException
{
private static final long serialVersionUID = 6150762006182320443L;

View file

@ -0,0 +1,34 @@
package info.ebenoit.ebul.cmp;
public class ComponentLifecycleException
extends ComponentException
{
private static final long serialVersionUID = -2763592771128673598L;
public ComponentLifecycleException( )
{
super( );
}
public ComponentLifecycleException( String message , Throwable cause )
{
super( message , cause );
}
public ComponentLifecycleException( String message )
{
super( message );
}
public ComponentLifecycleException( Throwable cause )
{
super( cause );
}
}

View file

@ -0,0 +1,34 @@
package info.ebenoit.ebul.cmp;
public class ComponentShutdownException
extends ComponentLifecycleException
{
private static final long serialVersionUID = -6951202395528197565L;
public ComponentShutdownException( )
{
super( );
}
public ComponentShutdownException( final String message , final Throwable cause )
{
super( message , cause );
}
public ComponentShutdownException( final String message )
{
super( message );
}
public ComponentShutdownException( final Throwable cause )
{
super( cause );
}
}

View file

@ -2,7 +2,7 @@ package info.ebenoit.ebul.cmp;
public class ComponentStartupException
extends ComponentException
extends ComponentLifecycleException
{
private static final long serialVersionUID = -8010582342593242803L;