Fix Resource not throwing Exception.