forked from HSLdevcom/OpenTripPlanner
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'entur/otp2_fix_tripTimes_min_sanity_che…
…ck' into otp2_entur_develop
- Loading branch information
Showing
4 changed files
with
74 additions
and
9 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
src/main/java/org/opentripplanner/framework/error/DefaultOtpError.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 @@ | ||
package org.opentripplanner.framework.error; | ||
|
||
class DefaultOtpError implements OtpError { | ||
|
||
private final String errorCode; | ||
private final String messageTemplate; | ||
private final Object[] messageArguments; | ||
|
||
public DefaultOtpError(String errorCode, String messageTemplate, Object... messageArguments) { | ||
this.errorCode = errorCode; | ||
this.messageTemplate = messageTemplate; | ||
this.messageArguments = messageArguments; | ||
} | ||
|
||
@Override | ||
public String errorCode() { | ||
return errorCode; | ||
} | ||
|
||
@Override | ||
public String messageTemplate() { | ||
return messageTemplate; | ||
} | ||
|
||
@Override | ||
public Object[] messageArguments() { | ||
return messageArguments; | ||
} | ||
} |
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