adds check for length of exception content