Restricted exceptions to Document load methods