Search in sources :

Example 6 with ErrorCode

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

the class ErrorCodeRegistry method getFileExist.

public static ErrorCode getFileExist() {
    ErrorCode err = new ErrorCode();
    err.setCode(304);
    err.setName("File or directory exists");
    err.setDescription("ARO found existing file or directory");
    sendGAErrorCode(err);
    return err;
}
Also used : ErrorCode(com.att.aro.core.pojo.ErrorCode)

Example 7 with ErrorCode

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

the class ErrorCodeRegistry method getMissingFolderName.

/**
 * Missing folder name
 * @return
 */
public static ErrorCode getMissingFolderName() {
    ErrorCode err = new ErrorCode();
    err.setCode(513);
    err.setName("missing folder name");
    err.setDescription(defaultBundle.getString("Error.foldernamerequired"));
    sendGAErrorCode(err);
    return err;
}
Also used : ErrorCode(com.att.aro.core.pojo.ErrorCode)

Example 8 with ErrorCode

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

the class ErrorCodeRegistry method getFailedToLoadXCode.

/**
 * failed to find XCode on local machine
 * @return
 */
public static ErrorCode getFailedToLoadXCode() {
    ErrorCode err = new ErrorCode();
    err.setCode(505);
    err.setName("Failed to find XCode on local machine");
    err.setDescription(ApplicationConfig.getInstance().getAppShortName() + " tried to load XCode on local machine, but failed because XCode is not installed.");
    sendGAErrorCode(err);
    return err;
}
Also used : ErrorCode(com.att.aro.core.pojo.ErrorCode)

Example 9 with ErrorCode

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

the class ErrorCodeRegistry method getAppUnzipError.

/**
 * @return
 */
public static ErrorCode getAppUnzipError() {
    ErrorCode err = new ErrorCode();
    err.setCode(525);
    err.setName("Error unzipping app");
    err.setDescription(defaultBundle.getString("Error.app.unzipapp"));
    sendGAErrorCode(err);
    return err;
}
Also used : ErrorCode(com.att.aro.core.pojo.ErrorCode)

Example 10 with ErrorCode

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

the class ErrorCodeRegistry method getNoSudoPassword.

/**
 * No sudo Password
 * @return
 */
public static ErrorCode getNoSudoPassword() {
    ErrorCode err = new ErrorCode();
    err.setCode(508);
    err.setName("No sudo Password");
    err.setDescription(MessageFormat.format(defaultBundle.getString("Error.nosudopassword"), ApplicationConfig.getInstance().getAppShortName()));
    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