Class DashScopeException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ApiConnectionException, ApiStatusException, SdkException

public class DashScopeException extends RuntimeException
Base class for all DashScope 3.0 SDK errors. Unchecked by design (2.x checked exceptions leaked into every signature).
See Also:
  • Constructor Details

  • Method Details

    • getCode

      public String getCode()
      Public error code (e.g. BadRequestError) or wire code when unmapped; nullable.
    • getStatusCode

      public Integer getStatusCode()
      HTTP status of the failed exchange; null for SDK-side failures.
    • getRequestId

      public String getRequestId()
    • getBody

      public Object getBody()
      Raw response body (decoded JSON as Map/List, or raw text); nullable.
    • getHeaders

      public Map<String,String> getHeaders()
    • toString

      public String toString()
      Overrides:
      toString in class Throwable