/* Copyright (C) 2013 Interactive Brokers LLC. All rights reserved. This code is subject to the terms * and conditions of the IB API Non-Commercial License or the IB API Commercial License, as applicable. */ package com.ib.client; public class AnyWrapperMsgGenerator { public static String error(Exception ex) { return "Error - " + ex; } public static String error(String str) { return str; } public static String error(int id, int errorCode, String errorMsg) { String err = Integer.toString(id); err += " | "; err += Integer.toString(errorCode); err += " | "; err += errorMsg; return err; } public static String connectionClosed() { return "Connection Closed"; } }