internal SharpBoxException(SharpBoxErrorCodes errorCode, Exception innerException, WebRequest request, WebResponse response) : base(GetErrorMessage(errorCode), innerException) { ErrorCode = errorCode; PostedRequet = request; DisposedReceivedResponse = response; }
private static String GetErrorMessage(SharpBoxErrorCodes errorCode) { // get the key String key = errorCode.ToString(); // Load the value of string value for Client try { return(ErrorMessages.ResourceManager.GetString(key)); } catch (Exception) { return("n/a"); } }
private static String GetErrorMessage(SharpBoxErrorCodes errorCode) { // get the key String key = errorCode.ToString(); // Load the value of string value for Client try { return ErrorMessages.ResourceManager.GetString(key); } catch (Exception) { return "n/a"; } }
/// <summary> /// The constructure if the SharpBoxException class. The error code wil /// be resolved into an text message automatically /// </summary> /// <param name="errorCode"></param> /// <param name="innerException"></param> internal SharpBoxException(SharpBoxErrorCodes errorCode, Exception innerException) : this(errorCode, innerException, null, null) { }
/// <summary> /// The constructure if the SharpBoxException class. The error code wil /// be resolved into an text message automatically /// </summary> /// <param name="errorCode"></param> public SharpBoxException(SharpBoxErrorCodes errorCode) : this(errorCode, null) { }