当前位置: 首页>>代码示例>>Java>>正文


Java ApiException.printStackTrace方法代码示例

本文整理汇总了Java中com.aspose.storage.client.ApiException.printStackTrace方法的典型用法代码示例。如果您正苦于以下问题:Java ApiException.printStackTrace方法的具体用法?Java ApiException.printStackTrace怎么用?Java ApiException.printStackTrace使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.aspose.storage.client.ApiException的用法示例。


在下文中一共展示了ApiException.printStackTrace方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: PutCreateFolder

import com.aspose.storage.client.ApiException; //导入方法依赖的package包/类
@Test
public void PutCreateFolder() throws ApiException {

    ResponseMessage response = null;

    try {
        response = storageApi.PutCreateFolder("AndroidTestFolder",null,null);
        assertEquals(200, response.getCode().intValue());
    } catch (ApiException ex) {
        ex.printStackTrace();
    }

}
 
开发者ID:aspose-words,项目名称:Aspose.Words-for-Cloud,代码行数:14,代码来源:StorageUnitTest.java

示例2: GetListFiles

import com.aspose.storage.client.ApiException; //导入方法依赖的package包/类
@Test
public void GetListFiles() throws ApiException {

    ResponseMessage response = null;

    try {
        response = storageApi.GetListFiles("AndroidTestFolder", null);
        assertEquals(200, response.getCode().intValue());
    } catch (ApiException ex) {
        ex.printStackTrace();
    }

}
 
开发者ID:aspose-barcode,项目名称:Aspose.BarCode-for-Cloud,代码行数:14,代码来源:StorageUnitTest.java

示例3: DeleteFolder

import com.aspose.storage.client.ApiException; //导入方法依赖的package包/类
@Test
public void DeleteFolder() throws ApiException {

    RemoveFolderResponse response = null;

    try {
        response = storageApi.DeleteFolder("AndroidTestFolder/AnotherAndroidTest", "", false);
        assertEquals("200", response.getCode());
    } catch (ApiException ex) {
        ex.printStackTrace();
    }

}
 
开发者ID:aspose-words,项目名称:Aspose.Words-for-Cloud,代码行数:14,代码来源:StorageUnitTest.java

示例4: DeleteFile

import com.aspose.storage.client.ApiException; //导入方法依赖的package包/类
@Test
public void DeleteFile() throws ApiException {

    RemoveFileResponse response = null;

    try {
        response = storageApi.DeleteFile("AndroidTestFolder/MovedSampleWordDocument.docx", "","");
        assertEquals("200", response.getCode());
    } catch (ApiException ex) {
        ex.printStackTrace();
    }

}
 
开发者ID:aspose-ocr,项目名称:Aspose.OCR-for-Cloud,代码行数:14,代码来源:StorageUnitTest.java

示例5: GetDownload

import com.aspose.storage.client.ApiException; //导入方法依赖的package包/类
@Test
public void GetDownload() throws ApiException {

    ResponseMessage response = null;

    try {
        response = storageApi.GetDownload("AndroidTestFolder/SampleWordDocument.docx", "", "");
        assertEquals(200, response.getCode().intValue());
    } catch (ApiException ex) {
        ex.printStackTrace();
    }

}
 
开发者ID:aspose-imaging,项目名称:Aspose.Imaging-for-Cloud,代码行数:14,代码来源:StorageUnitTest.java

示例6: GetIsStorageExist

import com.aspose.storage.client.ApiException; //导入方法依赖的package包/类
@Test
public void GetIsStorageExist() throws ApiException {

    StorageExistResponse response = null;

    try {
        response = storageApi.GetIsStorageExist("Aspose123");
        assertEquals("200", response.getCode());
    } catch (ApiException ex) {
        ex.printStackTrace();
    }

}
 
开发者ID:aspose-imaging,项目名称:Aspose.Imaging-for-Cloud,代码行数:14,代码来源:StorageUnitTest.java

示例7: GetIsExist

import com.aspose.storage.client.ApiException; //导入方法依赖的package包/类
@Test
public void GetIsExist() throws ApiException {

    FileExistResponse response = null;

    try {
        response = storageApi.GetIsExist("AndroidTestFolder/SampleWordDocument.docx", "", "");
        assertEquals("200", response.getCode());
    } catch (ApiException ex) {
        ex.printStackTrace();
    }

}
 
开发者ID:aspose-tasks,项目名称:Aspose.Tasks-for-Cloud,代码行数:14,代码来源:StorageUnitTest.java

示例8: GetDiscUsage

import com.aspose.storage.client.ApiException; //导入方法依赖的package包/类
@Test
public void GetDiscUsage() throws ApiException {

    DiscUsageResponse response = null;

    try {
        response = storageApi.GetDiscUsage(null);
        assertEquals("200",response.getCode());
        assertEquals(DiscUsage.class,response.getDiscUsage().getClass());
    } catch (ApiException ex) {
        ex.printStackTrace();
    }
}
 
开发者ID:aspose-barcode,项目名称:Aspose.BarCode-for-Cloud,代码行数:14,代码来源:StorageUnitTest.java


注:本文中的com.aspose.storage.client.ApiException.printStackTrace方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。