Class check when throwing exceptions from Df.php

Signed-off-by: Tom Wright <tom@inflatablecookie.com>