Uniformisation of Exception and Warning class.