public static ErrorDetails GetLastError() { int errorCode = GetErrorCode(); if (KnownErrors.ContainsKey(errorCode)) { return KnownErrors[errorCode]; } string message = Marshal.PtrToStringAnsi(LibZmq.zmq_strerror(errorCode)); var errorDetails = new ErrorDetails(errorCode, message); KnownErrors[errorCode] = errorDetails; return errorDetails; }
internal ZmqSocketException(ErrorDetails errorDetails) : base(errorDetails) { }
internal ZmqException(ErrorDetails errorDetails) : this(errorDetails.ErrorCode, errorDetails.Message) { }
internal ZmqDeviceException(ErrorDetails errorDetails) : base(errorDetails) { }