public ErrorHolder(ClientProtocolError errorCode, string className, string message, IEnumerable <StackTraceElement> stackTraceElements) { ErrorCode = (int)errorCode; ClassName = className; Message = message; StackTraceElements = stackTraceElements; }
private ClientMessage CreateErrorMessage(ClientProtocolError error) { // can we prepare server messages? var errorHolders = new List <ErrorHolder> { new ErrorHolder(error, "className", "message", Enumerable.Empty <StackTraceElement>()) }; return(ErrorsServerCodec.EncodeResponse(errorHolders)); }
/// <summary> /// Initializes a new instance of the <see cref="HazelcastException"/> class with a reference to /// the inner exception that is the cause of this exception. /// </summary> /// <param name="error">The client protocol error.</param> /// <param name="innerException">The exception that is the cause of the current exception, or a null /// reference if no inner exception is specified.</param> /// <param name="retryable">Whether the operation that threw the exception can be retried.</param> public ClientProtocolException(ClientProtocolError error, Exception innerException, bool retryable = false) : base(error.ToString(), innerException) { Error = error; Retryable = retryable; }
/// <summary> /// Initializes a new instance of the <see cref="HazelcastException"/> class with a specified error message. /// </summary> /// <param name="error">The client protocol error.</param> /// <param name="message">The message that describes the error.</param> /// <param name="retryable">Whether the operation that threw the exception can be retried.</param> public ClientProtocolException(ClientProtocolError error, string message, bool retryable = false) : base(message) { Error = error; Retryable = retryable; }