A B D E G I P R S

A

activate() - Method in class patterntesting.exception.ExceptionFactory
Activate.
activate() - Method in interface patterntesting.exception.ExceptionFactoryMBean
You can only provoke Exceptions if the active flag is set.
activateOnce() - Method in class patterntesting.exception.ExceptionFactory
Activate once.
activateOnce() - Method in interface patterntesting.exception.ExceptionFactoryMBean
If you want to provoke an Exception only for the next time use this method.
ALL_CLASSES - Static variable in interface patterntesting.exception.ExceptionFactoryMBean
The default value for ExceptionFactoryMBean.setScope(String) if nothing was set.

B

betterSAXException(SAXException) - Static method in class patterntesting.exception.xml.SAXHelper
Transforms a SAXException with too less infos into a better SAXException with more infos.
betterSAXException(SAXException, String) - Static method in class patterntesting.exception.xml.SAXHelper
Better sax exception.

D

deactivate() - Method in class patterntesting.exception.ExceptionFactory
Deactivate.
deactivate() - Method in interface patterntesting.exception.ExceptionFactoryMBean
You don't want to provoke an exception any longer?
DirNotFoundException - Exception in patterntesting.exception.io
Not every FileNotFoundException is a FileNotFoundException.
DirNotFoundException() - Constructor for exception patterntesting.exception.io.DirNotFoundException
The default constructor.
DirNotFoundException(String) - Constructor for exception patterntesting.exception.io.DirNotFoundException
 
DRIVER_PROPERTY - Static variable in class patterntesting.exception.xml.SAXHelper
The Constant DRIVER_PROPERTY.
DRIVER_RESOURCE - Static variable in class patterntesting.exception.xml.SAXHelper
The Constant DRIVER_RESOURCE.

E

ExceptionFactory - Class in patterntesting.exception
This class can create for testing purpose any desired checked exception.
ExceptionFactoryMBean - Interface in patterntesting.exception
The Interface ExceptionFactoryMBean.

G

getBetterFileNotFoundException(FileNotFoundException, File) - Static method in class patterntesting.exception.io.IOExceptionHelper
If the cause of a FileNotFoundException is a missing directory you will get a DirNotFoundException as return value.
getBetterIOException(IOException, File) - Static method in class patterntesting.exception.io.IOExceptionHelper
In contrast to the original IOException the file name will be appear alway as absolute file name.
getBetterIOException(IOException, String) - Static method in class patterntesting.exception.io.IOExceptionHelper
 
getBetterNoRouteToHostException(NoRouteToHostException, URLConnection) - Static method in class patterntesting.exception.net.SocketExceptionHelper
If the given NoRouteToHostException has only the default message ("No route to host") this message will be replaced by a better one.
getBetterSocketException(SocketException, URLConnection) - Static method in class patterntesting.exception.net.SocketExceptionHelper
The given SocketException is checked if it contains the host in the error message.
getDirNotFoundException(IOException, File) - Static method in class patterntesting.exception.io.IOExceptionHelper
At the moment this is only a simple constructor call.
getFire() - Method in class patterntesting.exception.ExceptionFactory
Only exceptions of this returned type will be fired.
getFire() - Method in interface patterntesting.exception.ExceptionFactoryMBean
Only exceptions of this returned type will be fired.
getInstance() - Static method in class patterntesting.exception.ExceptionFactory
It is realized as singleton because of the MBean interface.
getLastProvoked() - Method in class patterntesting.exception.ExceptionFactory
Gets the last provoked exception.
getLastProvoked() - Method in interface patterntesting.exception.ExceptionFactoryMBean
Gets the last provoked exception.
getLimitedTo() - Method in class patterntesting.exception.ExceptionFactory
Deprecated. replaced by ExceptionFactory.getFire() (will be removed with 1.2)
getLimitedTo() - Method in interface patterntesting.exception.ExceptionFactoryMBean
Deprecated. replaced by ExceptionFactoryMBean.getFire() (will be removed with 1.2)
getMaxNumberOfProvoked() - Method in class patterntesting.exception.ExceptionFactory
Gets the maximal number of provoked exceptions (default is Long.MAX_VALUE).
getMaxNumberOfProvoked() - Method in interface patterntesting.exception.ExceptionFactoryMBean
Gets the max number of provoked exceptions.
getNumberOfProvoked() - Method in class patterntesting.exception.ExceptionFactory
Gets the number of provoked exceptions.
getNumberOfProvoked() - Method in interface patterntesting.exception.ExceptionFactoryMBean
Gets the number of provoked exceptions.
getScope() - Method in class patterntesting.exception.ExceptionFactory
Returns the scope for which the exceptions will be thrown.
getScope() - Method in interface patterntesting.exception.ExceptionFactoryMBean
Returns the scope for which the exceptions will be thrown.

I

IOExceptionHelper - Class in patterntesting.exception.io
 
isActive() - Method in class patterntesting.exception.ExceptionFactory
Checks if is active.
isActive() - Method in interface patterntesting.exception.ExceptionFactoryMBean
Checks if is active.
isAssertsEnabled() - Method in class patterntesting.exception.ExceptionFactory
To see if the (Sun) Java-VM was called with the option "-ea" ("enable asserts") this getter shows it.
isAssertsEnabled() - Method in interface patterntesting.exception.ExceptionFactoryMBean
To see if the (Sun) Java-VM was called with the option "-ea" ("enable asserts") this getter shows it.

P

patterntesting.exception - package patterntesting.exception
This is the top level package of PatternTesting Exception.
patterntesting.exception.io - package patterntesting.exception.io
Support for IO Exceptions.
patterntesting.exception.net - package patterntesting.exception.net
 
patterntesting.exception.xml - package patterntesting.exception.xml
Some support for XML handling.
provoke(Class<? extends Throwable>) - Method in class patterntesting.exception.ExceptionFactory
Be careful - you can provoke any Exception with the method without the need to declare it with a throws statement.
provokeFor(JoinPoint) - Method in class patterntesting.exception.ExceptionFactory
This methods throws one of the exception which is possible for the given joinpoint.
provokeOneOf(Class<? extends Throwable>[]) - Method in class patterntesting.exception.ExceptionFactory
This method throws the first given Throwable type.

R

registerAsMBean() - Static method in class patterntesting.exception.ExceptionFactory
Normally the ExceptionFactory register itself at JMX.
reset() - Method in class patterntesting.exception.ExceptionFactory
Resets all preferences and deactivates ExceptionFactory.
reset() - Method in interface patterntesting.exception.ExceptionFactoryMBean
Resets all preferences.
resetFire() - Method in class patterntesting.exception.ExceptionFactory
Allows again that all exceptions would be fired.
resetFire() - Method in interface patterntesting.exception.ExceptionFactoryMBean
Allows again that all exceptions would be fired.
resetScope() - Method in class patterntesting.exception.ExceptionFactory
To set the scope back to "all classes" use this method here.
resetScope() - Method in interface patterntesting.exception.ExceptionFactoryMBean
To set the scope back to "all classes" use this method here.

S

SAXHelper - Class in patterntesting.exception.xml
The class SAXHelper was introduced to be able to provide better SAXExceptions.
SAXHelper() - Constructor for class patterntesting.exception.xml.SAXHelper
 
setActive(boolean) - Method in class patterntesting.exception.ExceptionFactory
You can only provoke Exceptions if the active flag is set.
setActive(boolean) - Method in interface patterntesting.exception.ExceptionFactoryMBean
You can only provoke Exceptions if the active flag is set.
setFire(String) - Method in class patterntesting.exception.ExceptionFactory
You want to provoked an SocketException whenever it is possible?
setFire(Class<? extends Throwable>) - Method in class patterntesting.exception.ExceptionFactory
You want to provoked an SocketException whenever it is possible?
setFire(String) - Method in interface patterntesting.exception.ExceptionFactoryMBean
You want to provoked an SocketException whenever it is possible?
setLimitedTo(Class<? extends Throwable>) - Method in class patterntesting.exception.ExceptionFactory
Deprecated. replaced by ExceptionFactory.setFire(String) (will be removed with 1.2)
setLimitedTo(String) - Method in class patterntesting.exception.ExceptionFactory
Deprecated. replaced by ExceptionFactory.setFire(String) (will be removed with 1.2)
setLimitedTo(String) - Method in interface patterntesting.exception.ExceptionFactoryMBean
Deprecated. replaced by ExceptionFactoryMBean.setFire(String) (will be removed with 1.2)
setMaxNumberOfProvoked(long) - Method in class patterntesting.exception.ExceptionFactory
Limit the number of provoked maximal total number of provoked exceptions to n (default is Long.MAX_VALUE).
setMaxNumberOfProvoked(long) - Method in interface patterntesting.exception.ExceptionFactoryMBean
Limit the number of provoked maximal total number of provoked exceptions to n.
setScope(Class<?>) - Method in class patterntesting.exception.ExceptionFactory
To limit the exception to be thrown for a given class you can use this method here.
setScope(String) - Method in class patterntesting.exception.ExceptionFactory
To limit the exception to be thrown for a given class you can use this method here.
setScope(String) - Method in interface patterntesting.exception.ExceptionFactoryMBean
To limit the exception to be thrown for a given class you can use this method here.
SocketExceptionHelper - Class in patterntesting.exception.net
The Class SocketExceptionHelper with some utility methods for better SocketExceptions or NoRouteToHostExceptions.

A B D E G I P R S

Copyright © 2009-2010 PatternTesting Team. All Rights Reserved.