Create  a custom error Type