2 * Copyright 2013-2014, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
10 using namespace BPackageKit
;
13 Exception::Exception(BTransactionError error
)
16 fSystemError(B_ERROR
),
26 Exception::SetSystemError(status_t error
)
34 Exception::SetPackageName(const BString
& packageName
)
36 fPackageName
= packageName
;
42 Exception::SetPath1(const BString
& path
)
50 Exception::SetPath2(const BString
& path
)
58 Exception::SetString1(const BString
& string
)
66 Exception::SetString2(const BString
& string
)
74 Exception::SetOnResult(BCommitTransactionResult
& result
)
76 result
.SetError(fError
);
77 result
.SetSystemError(fSystemError
);
78 result
.SetErrorPackage(fPackageName
);
79 result
.SetPath1(fPath1
);
80 result
.SetPath2(fPath2
);
81 result
.SetString1(fString1
);
82 result
.SetString2(fString2
);