Class OciRestException

  • All Implemented Interfaces:
    Serializable

    @Deprecated(since="2.5.0",
                forRemoval=true)
    public class OciRestException
    extends ApiRestException
    Deprecated, for removal: This API element is subject to removal in a future version.
    use OCI SDK instead
    Exception used when OCI REST call returned and we have HTTP status and headers, and possibly an entity.
    See Also:
    Serialized Form
    • Method Detail

      • builder

        public static OciRestException.Builder builder()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Create a new builder for this exception.
        Returns:
        a new builder
      • ociCode

        public Optional<String> ociCode()
        Deprecated, for removal: This API element is subject to removal in a future version.
        OCI error code (if present in response).
        Returns:
        OCI error code
      • ociMessage

        public Optional<String> ociMessage()
        Deprecated, for removal: This API element is subject to removal in a future version.
        OCI error message (if present in response).
        Returns:
        OCI error message