本文整理汇总了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();
}
}
示例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();
}
}
示例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();
}
}
示例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();
}
}
示例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();
}
}
示例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();
}
}
示例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();
}
}
示例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();
}
}