Can we check for specific error in these cases? may be `ArgumentError` in these cases?