Skip to content

Repository files navigation

pl-errormessage

https://travis-ci.org/FNNDSC/errorgenerator.svg?branch=master

errorgenerator is a simple app that raises an error message of errorType. If called with an optional --customErrorMessage the plugin will append the message to the error.

python errorgenerator.py                                        \
    [-v <level>] [--verbosity <level>]                          \
    [--errorType <typeError>]                                   \
    [--customErrorMessage <message>]                            \
    [--delayTime <secondsDelay>]                                \
    [--version]                                                 \
    [--man]                                                     \
    [--meta]                                                    \
    /tmp

This plugin can be run in two modes: natively as a python package or as a containerized docker image.

To run from PyPI, simply do a

pip install errorgenerator

and run with

errorgenerator.py --errorType Exception /tmp

to attach a message to the error, simply do

errorgenerator.py --errorType Exception             \
                  --customErrorMessage Errored      \
                  /tmp

To run using docker, prefix all calls with

docker run --rm                                     \
    fnndsc/pl-errorgenerator errorgenerator.py
docker run --rm                                     \
    fnndsc/pl-errorgenerator errorgenerator.py      \
    --errorType UnboundLocalError                   \
    /tmp
docker run --rm                                     \
    fnndsc/pl-errorgenerator errorgenerator.py      \
    --errorType UnboundLocalError                   \
    --customErrorMessage ErrorOccured               \
    /tmp
docker run --rm                                     \
    fnndsc/pl-errorgenerator errorgenerator.py      \
    --errorType UnboundLocalError                   \
    --delayTime 5                                   \
    /tmp

About

An App that crashes on purpose with specified exception conditions. Used to debug e2e flow and integration.

Topics

Resources

Stars

0 stars

Watchers

4 watching

Forks

Releases

Packages

Contributors

Languages