-
Notifications
You must be signed in to change notification settings - Fork 408
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add processing of onSendError callback.
Report errors during send. Signed-off-by: Achim Kraus <achim.kraus@bosch-si.com> Also-by: Simon Bernard <sbernard@sierrawireless.com>
- leshan-2.0.0-M17
- leshan-2.0.0-M16
- leshan-2.0.0-M15
- leshan-2.0.0-M14
- leshan-2.0.0-M13
- leshan-2.0.0-M12
- leshan-2.0.0-M11
- leshan-2.0.0-M10
- leshan-2.0.0-M9
- leshan-2.0.0-M8
- leshan-2.0.0-M7
- leshan-2.0.0-M6
- leshan-2.0.0-M5
- leshan-2.0.0-M4
- leshan-2.0.0-M3
- leshan-2.0.0-M2
- leshan-2.0.0-M1
- leshan-1.5.0
- leshan-1.4.2
- leshan-1.4.1
- leshan-1.4.0
- leshan-1.3.2
- leshan-1.3.1
- leshan-1.3.0
- leshan-1.2.0
- leshan-1.1.0
- leshan-1.0.2
- leshan-1.0.1
- leshan-1.0.0
- leshan-1.0.0-RC2
- leshan-1.0.0-RC1
- leshan-1.0.0-M13
- leshan-1.0.0-M12
- leshan-1.0.0-M11
- leshan-1.0.0-M10
- leshan-1.0.0-M9
- leshan-1.0.0-M8
- leshan-1.0.0-M7
- leshan-1.0.0-M6
- leshan-1.0.0-M5
1 parent
1a8cd91
commit 83ed30e
Showing
3 changed files
with
61 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
leshan-core/src/main/java/org/eclipse/leshan/core/request/exception/SendFailedException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2017 Sierra Wireless and others. | ||
* | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v1.0 | ||
* and Eclipse Distribution License v1.0 which accompany this distribution. | ||
* | ||
* The Eclipse Public License is available at | ||
* http://www.eclipse.org/legal/epl-v10.html | ||
* and the Eclipse Distribution License is available at | ||
* http://www.eclipse.org/org/documents/edl-v10.html. | ||
* | ||
* Contributors: | ||
* Sierra Wireless - initial API and implementation | ||
*******************************************************************************/ | ||
package org.eclipse.leshan.core.request.exception; | ||
|
||
/** | ||
* Thrown to indicate that the request has failed to be sent. | ||
*/ | ||
public class SendFailedException extends RuntimeException { | ||
|
||
private static final long serialVersionUID = 1L; | ||
|
||
public SendFailedException() { | ||
} | ||
|
||
public SendFailedException(String m) { | ||
super(m); | ||
} | ||
|
||
public SendFailedException(String m, Object... args) { | ||
super(String.format(m, args)); | ||
} | ||
|
||
public SendFailedException(Throwable e) { | ||
super(e); | ||
} | ||
|
||
public SendFailedException(String m, Throwable e) { | ||
super(m, e); | ||
} | ||
|
||
public SendFailedException(Throwable e, String m, Object... args) { | ||
super(String.format(m, args), e); | ||
} | ||
} |