shakemap.coremods.exception

Raise an exception (used for testing.)

class shakemap.coremods.exception.ExceptionModule(eventid, seconds=None)[source]

Bases: CoreModule

Module to raise an exception for testing purposes.

Instantiate a CoreModule class with an event ID.

command_name = 'exception'
execute()[source]

Raise an Exception object.

This module exists for the purposes of testing shake’s exception handling logic.