Tabnine Logo
ClientException.getMessage
Code IndexAdd Tabnine to your IDE (free)

How to use
getMessage
method
in
com.aliyuncs.exceptions.ClientException

Best Java code snippets using com.aliyuncs.exceptions.ClientException.getMessage (Showing top 4 results out of 315)

origin: CloudSlang/cs-actions

private static AcsResponse getResponse(final String proxyHost,
                    final String proxyPort,
                    final String proxyUsername,
                    final String proxyPassword,
                    final IAcsClient client,
                    final AcsRequest request) {
  try {
    if (!isEmpty(proxyHost)) {
      // Set JVM proxies during runtime
      ProxyUtil.setProxies(proxyHost, proxyPort, proxyUsername, proxyPassword);
      //Thread.sleep(30000);
    }
    return client.getAcsResponse(request);
  } catch (ClientException e) {
    throw new RuntimeException(e.getMessage());
  } finally {
    if (!isEmpty(proxyHost)) {
      //Clear proxies
      ProxyUtil.clearProxy();
    }
  }
}
origin: cn.org.faster/faster-sms

  @Override
  public boolean send(SendSmsRequest request) {
    try {
      IAcsClient acsClient = new DefaultAcsClient(profile);
      request.setMethod(MethodType.POST);
      SendSmsResponse sendSmsResponse = acsClient.getAcsResponse(request);
      if (sendSmsResponse.getCode() != null && sendSmsResponse.getCode().
          equals("OK")) {
        return true;
      }
    } catch (ClientException e) {
      log.error(e.getMessage());
      return false;
    }
    return false;
  }
}
origin: cn.org.faster/faster-framework-sms

  @Override
  public boolean send(SendSmsRequest request) {
    try {
      IAcsClient acsClient = new DefaultAcsClient(profile);
      request.setMethod(MethodType.POST);
      SendSmsResponse sendSmsResponse = acsClient.getAcsResponse(request);
      if (sendSmsResponse.getCode() != null && sendSmsResponse.getCode().
          equals("OK")) {
        return true;
      }
    } catch (ClientException e) {
      log.error(e.getMessage());
      return false;
    }
    return false;
  }
}
origin: xautlx/s2jh4net

return e.getMessage();
com.aliyuncs.exceptionsClientExceptiongetMessage

Popular methods of ClientException

  • printStackTrace
  • <init>
  • getErrCode
  • getErrMsg
  • getRequestId
  • setErrorType
  • toString

Popular in Java

  • Parsing JSON documents to java classes using gson
  • setContentView (Activity)
  • onCreateOptionsMenu (Activity)
  • getContentResolver (Context)
  • String (java.lang)
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Permission (java.security)
    Legacy security code; do not use.
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now