Move the error message to a `public static` method of `RuntimeException`