libflitter/errors/SoftError.js

/**
 * @module libflitter/errors/SoftError
 */

const FlitterError = require('./FlitterError')

/**
 * An error that, if thrown within Flitter, indicates that a non-fatal error has occurred.
 * Flitter will not shut down after this error, but the exit code will change.
 * @extends module:libflitter/errors/FlitterError~FlitterError
 */
class StopError extends FlitterError {

    constructor(msg = "Flitter encountered an error, but was able to continue.", ...args){
        super(msg, ...args)
    }

}

module.exports = exports = StopError