File: error.h

package info (click to toggle)
rust-rust-apt 0.8.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 620 kB
  • sloc: cpp: 703; makefile: 8
file content (13 lines) | stat: -rw-r--r-- 339 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
#pragma once
#include <apt-pkg/error.h>
#include "rust-apt/src/error.rs"
#include "rust/cxx.h"

#include "types.h"

/// Handle the situation where a string is null and return a result to rust
inline bool pending_error() { return _error->PendingError(); }

inline bool empty() { return _error->empty(); }

Vec<AptError> get_all() noexcept;