01: /**
02: * @copyright
03: * ====================================================================
04: * Copyright (c) 2003-2004 CollabNet. All rights reserved.
05: *
06: * This software is licensed as described in the file COPYING, which
07: * you should have received as part of this distribution. The terms
08: * are also available at http://subversion.tigris.org/license-1.html.
09: * If newer versions of this license are posted there, you may use a
10: * newer version instead, at your option.
11: *
12: * This software consists of voluntary contributions made by many
13: * individuals. For exact contribution history, see the revision
14: * history and logs, available at http://subversion.tigris.org/.
15: * ====================================================================
16: * @endcopyright
17: */package org.tigris.subversion.javahl;
18:
19: /**
20: * Subversion client exception class.
21: * This exception is throw whenever something goes wrong in the jni-interface
22: */
23: public class ClientException extends Exception {
24: /**
25: * The constructor is only used by the native library.
26: * @param message message
27: * @param source source
28: * @param aprError APR error code
29: */
30: ClientException(String message, String source, int aprError) {
31: super (message);
32: this .source = source;
33: this .aprError = aprError;
34: }
35:
36: /**
37: * the exception message
38: */
39: private String message;
40:
41: /**
42: * the error source
43: */
44: private String source;
45: /**
46: * the APR error id
47: */
48: private int aprError;
49:
50: /**
51: * Returns the error source.
52: */
53: public String getSource() {
54: return source;
55: }
56:
57: /**
58: * Returns the APR error id.
59: */
60: public int getAprError() {
61: return aprError;
62: }
63: }
|