RETHROW_OUTSIDE_CATCH constant

CompileTimeErrorCode const RETHROW_OUTSIDE_CATCH

12.8.1 Rethrow: It is a compile-time error if an expression of the form rethrow; is not enclosed within a on-catch clause.

Implementation

static const CompileTimeErrorCode RETHROW_OUTSIDE_CATCH =
    CompileTimeErrorCode(
        'RETHROW_OUTSIDE_CATCH', "Rethrow must be inside of catch clause.",
        correction:
            "Try moving the expression into a catch clause, or using a "
            "'throw' expression.")