Quickly create custom error objects.