Class ErrorCategory

java.lang.Object
com.azure.core.util.ExpandableStringEnum<ErrorCategory>
com.azure.compute.batch.models.ErrorCategory
All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>

public final class ErrorCategory extends com.azure.core.util.ExpandableStringEnum<ErrorCategory>
ErrorCategory enums.
  • Field Details

    • USER_ERROR

      public static final ErrorCategory USER_ERROR
      The error is due to a user issue, such as misconfiguration.
    • SERVER_ERROR

      public static final ErrorCategory SERVER_ERROR
      The error is due to an internal server issue.
  • Constructor Details

    • ErrorCategory

      @Deprecated public ErrorCategory()
      Deprecated.
      Use the fromString(String) factory method.
      Creates a new instance of ErrorCategory value.
  • Method Details

    • fromString

      public static ErrorCategory fromString(String name)
      Creates or finds a ErrorCategory from its string representation.
      Parameters:
      name - a name to look for.
      Returns:
      the corresponding ErrorCategory.
    • values

      public static Collection<ErrorCategory> values()
      Gets known ErrorCategory values.
      Returns:
      known ErrorCategory values.