-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
41 changed files
with
1,583 additions
and
1,444 deletions.
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
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
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
38 changes: 38 additions & 0 deletions
38
...r-library/src/main/java/com/helger/peppol/smpserver/exception/SMPBadRequestException.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,38 @@ | ||
/** | ||
* Copyright (C) 2015-2018 Philip Helger and contributors | ||
* philip[at]helger[dot]com | ||
* | ||
* The Original Code is Copyright The PEPPOL project (http://www.peppol.eu) | ||
* | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
*/ | ||
package com.helger.peppol.smpserver.exception; | ||
|
||
import java.net.URI; | ||
|
||
import javax.annotation.Nonnull; | ||
import javax.annotation.Nullable; | ||
|
||
/** | ||
* HTTP 400 (Bad Request) exception wrapper | ||
* | ||
* @author Philip Helger | ||
* @since 5.1.0 | ||
*/ | ||
public class SMPBadRequestException extends SMPServerException | ||
{ | ||
/** | ||
* Create a HTTP 400 (Bad request) exception. | ||
* | ||
* @param sMessage | ||
* the String that is the entity of the HTTP response. | ||
* @param aNotFoundURI | ||
* The URI that was not found. | ||
*/ | ||
public SMPBadRequestException (@Nonnull final String sMessage, @Nullable final URI aNotFoundURI) | ||
{ | ||
super ("Bad request: " + sMessage + (aNotFoundURI == null ? "" : " at " + aNotFoundURI)); | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
...ibrary/src/main/java/com/helger/peppol/smpserver/exception/SMPInternalErrorException.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,17 @@ | ||
package com.helger.peppol.smpserver.exception; | ||
|
||
import javax.annotation.Nonnull; | ||
|
||
/** | ||
* Exception that is thrown to indicate an HTTP 500 error. | ||
* | ||
* @author Philip Helger | ||
* @since 5.1.0 | ||
*/ | ||
public class SMPInternalErrorException extends SMPServerException | ||
{ | ||
public SMPInternalErrorException (@Nonnull final String sMsg, @Nonnull final Throwable aCause) | ||
{ | ||
super (sMsg, aCause); | ||
} | ||
} |
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
29 changes: 29 additions & 0 deletions
29
...p-server-library/src/main/java/com/helger/peppol/smpserver/exception/SMPSMLException.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,29 @@ | ||
/** | ||
* Copyright (C) 2015-2018 Philip Helger and contributors | ||
* philip[at]helger[dot]com | ||
* | ||
* The Original Code is Copyright The PEPPOL project (http://www.peppol.eu) | ||
* | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
*/ | ||
package com.helger.peppol.smpserver.exception; | ||
|
||
import javax.annotation.Nonnull; | ||
|
||
import com.helger.peppol.smpserver.smlhook.RegistrationHookException; | ||
|
||
/** | ||
* This exception is thrown if an error occurred communicating with the SML | ||
* | ||
* @author Philip Helger | ||
* @since 5.1.0 | ||
*/ | ||
public class SMPSMLException extends SMPServerException | ||
{ | ||
public SMPSMLException (@Nonnull final String sMsg, @Nonnull final RegistrationHookException aCause) | ||
{ | ||
super (sMsg, aCause); | ||
} | ||
} |
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
Oops, something went wrong.