Search in sources :

Example 36 with ErrorCode

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

the class ErrorCodeRegistry method getNoDeviceConnected.

public static ErrorCode getNoDeviceConnected() {
    ErrorCode err = new ErrorCode();
    err.setCode(203);
    err.setName("No Android device found.");
    err.setDescription(ApplicationConfig.getInstance().getAppName() + " cannot find any Android deviced plugged into the machine.");
    sendGAErrorCode(err);
    return err;
}
Also used : ErrorCode(com.att.aro.core.pojo.ErrorCode)

Example 37 with ErrorCode

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

the class ErrorCodeRegistry method getFailedToCreateLocalTraceDirectory.

/**
 * failed to create local directory in user's machine to save trace data to.
 *
 * @return
 */
public static ErrorCode getFailedToCreateLocalTraceDirectory() {
    ErrorCode err = new ErrorCode();
    err.setCode(207);
    err.setName("Failed to create local trace directory");
    err.setDescription(ApplicationConfig.getInstance().getAppName() + " tried to create local directory for saving trace data, but failed.");
    sendGAErrorCode(err);
    return err;
}
Also used : ErrorCode(com.att.aro.core.pojo.ErrorCode)

Example 38 with ErrorCode

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

the class ErrorCodeRegistry method getFailToInstallAPK.

public static ErrorCode getFailToInstallAPK() {
    ErrorCode err = new ErrorCode();
    err.setCode(201);
    err.setName("Failed to install Android App on device");
    err.setDescription(ApplicationConfig.getInstance().getAppName() + " tried to install Collector on device and failed. Try to manually install it, then try again.");
    sendGAErrorCode(err);
    return err;
}
Also used : ErrorCode(com.att.aro.core.pojo.ErrorCode)

Example 39 with ErrorCode

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

the class ErrorCodeRegistry method getDeviceNotOnline.

public static ErrorCode getDeviceNotOnline() {
    ErrorCode err = new ErrorCode();
    err.setCode(216);
    err.setName("Android device not online.");
    err.setDescription(ApplicationConfig.getInstance().getAppName() + " cannot command an Android device that is not online.");
    sendGAErrorCode(err);
    return err;
}
Also used : ErrorCode(com.att.aro.core.pojo.ErrorCode)

Example 40 with ErrorCode

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

the class ErrorCodeRegistry method getCollectorTimeout.

public static ErrorCode getCollectorTimeout() {
    ErrorCode err = new ErrorCode();
    err.setCode(214);
    err.setName("Collector Failed to start traffic capture");
    err.setDescription(ApplicationConfig.getInstance().getAppName() + " detected that the collector failed to start capture in time");
    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