Search in sources :

Example 26 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(412);
    err.setName("Android device not online.");
    err.setDescription(ApplicationConfig.getInstance().getAppShortName() + " cannot command an Android device that is not online.");
    sendGAErrorCode(err);
    return err;
}
Also used : ErrorCode(com.att.aro.core.pojo.ErrorCode)

Example 27 with ErrorCode

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

the class ErrorCodeRegistry method getFailSyncService.

public static ErrorCode getFailSyncService() {
    ErrorCode err = new ErrorCode();
    err.setCode(411);
    err.setName("Failed to connect to device SyncService");
    err.setDescription(ApplicationConfig.getInstance().getAppShortName() + " failed to get the trace, since it's not able to connect to Device");
    sendGAErrorCode(err);
    return err;
}
Also used : ErrorCode(com.att.aro.core.pojo.ErrorCode)

Example 28 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().getAppShortName() + ApplicationConfig.getInstance().getVPNCollectorName() + " is already running");
    err.setDescription("There is already a " + ApplicationConfig.getInstance().getVPNCollectorName() + " running on this device. Stop it first, manually, before starting a new trace.");
    sendGAErrorCode(err);
    return err;
}
Also used : ErrorCode(com.att.aro.core.pojo.ErrorCode)

Example 29 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(406);
    err.setName("Failed to create local trace directory");
    err.setDescription(ApplicationConfig.getInstance().getAppShortName() + " 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 30 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(403);
    err.setName("No Android device found.");
    err.setDescription(ApplicationConfig.getInstance().getAppShortName() + " cannot find any Android device plugged into the machine.");
    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