Search in sources :

Example 61 with ErrorCode

use of com.att.aro.core.pojo.ErrorCode in project VideoOptimzer by attdevsupport.

the class ErrorCodeRegistry method getAndroidBridgeFailedToStart.

public static ErrorCode getAndroidBridgeFailedToStart() {
    ErrorCode error = new ErrorCode();
    error.setCode(200);
    error.setName("Android Debug Bridge failed to start");
    error.setDescription(ApplicationConfig.getInstance().getAppName() + " Collector tried to start Android Debug Bridge service. The service was not started successfully.");
    sendGAErrorCode(error);
    return error;
}
Also used : ErrorCode(com.att.aro.core.pojo.ErrorCode)

Example 62 with ErrorCode

use of com.att.aro.core.pojo.ErrorCode in project VideoOptimzer by attdevsupport.

the class ErrorCodeRegistry method getFailToInstallTcpdump.

public static ErrorCode getFailToInstallTcpdump() {
    ErrorCode err = new ErrorCode();
    err.setCode(209);
    err.setName("Failed to install tcpdump");
    err.setDescription(ApplicationConfig.getInstance().getAppName() + " failed to install tcpdump on Emulator. Tcpdump is required to capture packet");
    sendGAErrorCode(err);
    return err;
}
Also used : ErrorCode(com.att.aro.core.pojo.ErrorCode)

Example 63 with ErrorCode

use of com.att.aro.core.pojo.ErrorCode in project VideoOptimzer by attdevsupport.

the class ErrorCodeRegistry method getDeviceHasNoSpace.

/**
 * device does not have any space in sdcard to collect trace
 *
 * @return
 */
public static ErrorCode getDeviceHasNoSpace() {
    ErrorCode err = new ErrorCode();
    err.setCode(205);
    err.setName("Device has no space");
    err.setDescription("Device does not have any space for saving trace");
    sendGAErrorCode(err);
    return err;
}
Also used : ErrorCode(com.att.aro.core.pojo.ErrorCode)

Example 64 with ErrorCode

use of com.att.aro.core.pojo.ErrorCode in project VideoOptimzer by attdevsupport.

the class ErrorCodeRegistry method getCollectorAlreadyRunning.

public static ErrorCode getCollectorAlreadyRunning() {
    ErrorCode err = new ErrorCode();
    err.setCode(206);
    err.setName(ApplicationConfig.getInstance().getAppName() + " Rooted Android collector already running");
    err.setDescription("There is already an " + ApplicationConfig.getInstance().getAppName() + " collector running on this device. Stop it first before running another one.");
    sendGAErrorCode(err);
    return err;
}
Also used : ErrorCode(com.att.aro.core.pojo.ErrorCode)

Example 65 with ErrorCode

use of com.att.aro.core.pojo.ErrorCode in project VideoOptimzer by attdevsupport.

the class ErrorCodeRegistry method getProblemAccessingDevice.

public static ErrorCode getProblemAccessingDevice(String message) {
    ErrorCode err = new ErrorCode();
    err.setCode(215);
    err.setName("Problem accessing device");
    err.setDescription(ApplicationConfig.getInstance().getAppName() + " failed to access device :" + message);
    sendGAErrorCode(err);
    return err;
}
Also used : ErrorCode(com.att.aro.core.pojo.ErrorCode)

Aggregations

ErrorCode (com.att.aro.core.pojo.ErrorCode)78 ImHereThread (com.att.aro.console.printstreamutils.ImHereThread)1 OutSave (com.att.aro.console.printstreamutils.OutSave)1 IAROService (com.att.aro.core.IAROService)1 TsharkException (com.att.aro.core.exception.TsharkException)1 IFileManager (com.att.aro.core.fileio.IFileManager)1 AROTraceData (com.att.aro.core.pojo.AROTraceData)1 IOException (java.io.IOException)1