private void writeObject(ObjectOutputStream oos) throws IOException { if (response instanceof ShellResponse.Error) { oos.writeBoolean(false); ShellResponse.Error error = (ShellResponse.Error)response; oos.writeObject(error.getKind()); oos.writeObject(error.getMessage()); oos.writeObject(error.getThrowable().getMessage()); oos.writeObject(error.getThrowable().getStackTrace()); } else { oos.writeBoolean(true); oos.writeObject(response); } }
private void writeObject(ObjectOutputStream oos) throws IOException { if (response instanceof ShellResponse.Error) { oos.writeBoolean(false); ShellResponse.Error error = (ShellResponse.Error)response; oos.writeObject(error.getType()); oos.writeObject(error.getMessage()); oos.writeObject(error.getThrowable().getMessage()); oos.writeObject(error.getThrowable().getStackTrace()); } else { oos.writeBoolean(true); oos.writeObject(response); } }
if (response instanceof ShellResponse.Error) { ShellResponse.Error error = (ShellResponse.Error)response; log.log(Level.SEVERE, errorMsg, error.getThrowable()); } else { log.log(Level.SEVERE, errorMsg);
if (response instanceof ShellResponse.Error) { ShellResponse.Error error = (ShellResponse.Error)response; log.log(Level.SEVERE, errorMsg, error.getThrowable()); } else { log.log(Level.SEVERE, errorMsg);
if (response instanceof ShellResponse.Error) { ShellResponse.Error error = (ShellResponse.Error)response; log.log(Level.SEVERE, errorMsg, error.getThrowable()); } else { log.log(Level.SEVERE, errorMsg);
Throwable t = error.getThrowable(); if (t != null) { CRaSHSession.log.log(Level.SEVERE, "Error while evaluating request '" + request + "' " + error.getMessage(), t); } else { CRaSHSession.log.log(Level.SEVERE, "Error while evaluating request '" + request + "' " + error.getMessage());
Throwable t = error.getThrowable(); if (t != null) { CRaSHSession.log.log(Level.SEVERE, "Error while evaluating request '" + request + "' " + error.getMessage(), t); } else { CRaSHSession.log.log(Level.SEVERE, "Error while evaluating request '" + request + "' " + error.getMessage());
Throwable t = error.getThrowable(); if (t != null) { CRaSHSession.log.log(Level.SEVERE, "Error while evaluating request '" + request + "' " + error.getMessage(), t); } else { CRaSHSession.log.log(Level.SEVERE, "Error while evaluating request '" + request + "' " + error.getMessage());
public static Error error(ErrorKind type, String msg) { return new Error(type, msg); }
public static Error internalError(String msg, Throwable throwable) { return new Error(ErrorKind.INTERNAL, msg, throwable); }
public static Error error(ErrorType type, String msg) { return new Error(type, msg); }
public static Error error(ErrorType type, String msg, Throwable throwable) { return new Error(type, msg, throwable); }
public static Error evalError(String msg, Throwable throwable) { return new Error(ErrorType.EVALUATION, msg, throwable); }
public static Error error(ErrorKind type, String msg) { return new Error(type, msg); }
public static Error internalError(String msg, Throwable throwable) { return new Error(ErrorKind.INTERNAL, msg, throwable); }
public static Error internalError(String msg) { return new Error(ErrorKind.INTERNAL, msg); }
public static Error evalError(String msg, Throwable throwable) { return new Error(ErrorKind.EVALUATION, msg, throwable); }
public static Error error(ErrorKind type, String msg, Throwable throwable) { return new Error(type, msg, throwable); }
public static Error internalError(String msg) { return new Error(ErrorKind.INTERNAL, msg); }
public static Error evalError(String msg, Throwable throwable) { return new Error(ErrorKind.EVALUATION, msg, throwable); }