You should create a custom `LTIException` class (subclassing from Exception) and raise that, so that other code calling this can catch that exception explicitly.