OSDN Git Service

LowpanException: Refactor exception handling
authorRobert Quattlebaum <rquattle@google.com>
Fri, 14 Jul 2017 19:09:59 +0000 (12:09 -0700)
committerRobert Quattlebaum <rquattle@google.com>
Tue, 18 Jul 2017 07:42:18 +0000 (00:42 -0700)
commit865fdc75c324769d07881c04b3400d99e4b4b33f
tree905072669e9211e7f6a38b93679fbea07b0c5b96
parent93ea3ce9b8bd53f97df2171b3e3fbc70fa1b096d
LowpanException: Refactor exception handling

Got rid of the exposed exception code and we now rely on subclasses of
LowpanException. Also introduces a new exception: LowpanRuntimeException

LowpanRuntimeException, as a subclass of AndroidRuntimeException,
doesn't need explicitly delared "throws" statements for function
declarations. Most Exceptions are still LowpanExceptions, but some
specific error codes, such as ERROR_NCP_PROBLEM, are now using this
new exception class.

Bug: b/63708181
Change-Id: Idba6233ac4803d33561b5aa951c8fa846c3ab1d8
lowpan/java/android/net/lowpan/ILowpanInterface.aidl
lowpan/java/android/net/lowpan/InterfaceDisabledException.java [new file with mode: 0644]
lowpan/java/android/net/lowpan/JoinFailedAtAuthException.java [new file with mode: 0644]
lowpan/java/android/net/lowpan/JoinFailedAtScanException.java [new file with mode: 0644]
lowpan/java/android/net/lowpan/JoinFailedException.java [new file with mode: 0644]
lowpan/java/android/net/lowpan/LowpanException.java
lowpan/java/android/net/lowpan/LowpanRuntimeException.java [new file with mode: 0644]
lowpan/java/android/net/lowpan/NetworkAlreadyExistsException.java [new file with mode: 0644]
lowpan/java/android/net/lowpan/OperationCanceledException.java [new file with mode: 0644]
lowpan/java/android/net/lowpan/WrongStateException.java [new file with mode: 0644]