use of com.emc.storageos.svcs.errorhandling.resources.ServiceCodeException in project coprhd-controller by CoprHD.
the class ServiceCodeExceptionTest method snapshotFailed.
@Test
public void snapshotFailed() {
final ServiceCodeException exception = new ServiceCodeException(CONTROLLER_ERROR, "Non-protected volume or snapshot add volume failed", null);
assertControllerError("Non-protected volume or snapshot add volume failed", exception);
}
use of com.emc.storageos.svcs.errorhandling.resources.ServiceCodeException in project coprhd-controller by CoprHD.
the class ServiceCodeExceptionTest method notSupported.
@Test
public void notSupported() {
final ServiceCodeException exception = new ServiceCodeException(API_METHOD_NOT_SUPPORTED, "Operation not supported", null);
assertApiMethodNotAllowed("Operation not supported", exception);
}
use of com.emc.storageos.svcs.errorhandling.resources.ServiceCodeException in project coprhd-controller by CoprHD.
the class ServiceCodeExceptionTest method failedToCreateDir.
@Test
public void failedToCreateDir() {
final String dirName = "dirName";
final ServiceCodeException exception = new ServiceCodeException(IO_ERROR, "Failed to create temp dir: {0}", new Object[] { dirName });
assertIoError("Failed to create temp dir: " + dirName, exception);
}
use of com.emc.storageos.svcs.errorhandling.resources.ServiceCodeException in project coprhd-controller by CoprHD.
the class ServiceCodeExceptionTest method unableToCreateDir.
@Test
public void unableToCreateDir() {
final String dirPath = "/serverIdDir";
final ServiceCodeException exception = new ServiceCodeException(IO_ERROR, "Unable to create server id directories: {0}", new Object[] { dirPath });
assertIoError("Unable to create server id directories: " + dirPath, exception);
}
use of com.emc.storageos.svcs.errorhandling.resources.ServiceCodeException in project coprhd-controller by CoprHD.
the class ServiceCodeExceptionTest method nullDirectory.
@Test
public void nullDirectory() {
final ServiceCodeException exception = new ServiceCodeException(IO_ERROR, "Null directory name", null);
assertIoError("Null directory name", exception);
}
Aggregations