Search in sources :

Example 46 with ErrorCode

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

the class ErrorCodeRegistry method getAdbPullFailure.

public static ErrorCode getAdbPullFailure() {
    ErrorCode err = new ErrorCode();
    err.setCode(416);
    err.setName("ADB command failed to pull data.");
    err.setDescription(ApplicationConfig.getInstance().getAppShortName() + " was unable to pull trace from target device.");
    sendGAErrorCode(err);
    return err;
}
Also used : ErrorCode(com.att.aro.core.pojo.ErrorCode)

Example 47 with ErrorCode

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

the class ErrorCodeRegistry method getScriptAdapterError.

public static ErrorCode getScriptAdapterError(String path) {
    ErrorCode err = new ErrorCode();
    err.setCode(417);
    err.setName("Script convert Error");
    err.setDescription(ApplicationConfig.getInstance().getAppShortName() + " was unable to read the profile " + path);
    sendGAErrorCode(err);
    return err;
}
Also used : ErrorCode(com.att.aro.core.pojo.ErrorCode)

Example 48 with ErrorCode

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

the class ErrorCodeRegistry method getNotSupported.

public static ErrorCode getNotSupported(String message) {
    ErrorCode err = new ErrorCode();
    err.setCode(415);
    err.setName("ABI X86 Not Supported");
    err.setDescription(message);
    sendGAErrorCode(err);
    return err;
}
Also used : ErrorCode(com.att.aro.core.pojo.ErrorCode)

Example 49 with ErrorCode

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

the class ErrorCodeRegistry method getDeviceIdNotFound.

/**
 * no device id matched the device list
 *
 * @return
 */
public static ErrorCode getDeviceIdNotFound() {
    ErrorCode err = new ErrorCode();
    err.setCode(404);
    err.setName("Android device Id or serial number not found.");
    err.setDescription(ApplicationConfig.getInstance().getAppShortName() + " cannot find any Android device plugged into the machine that matched the device ID or serial number you specified.");
    sendGAErrorCode(err);
    return err;
}
Also used : ErrorCode(com.att.aro.core.pojo.ErrorCode)

Example 50 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(400);
    error.setName("Android Debug Bridge failed to start");
    error.setDescription(ApplicationConfig.getInstance().getVPNCollectorName() + " 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)

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