$severity is not the same as exception code, it should be removed.