-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
30 changed files
with
2,050 additions
and
39 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
10 changes: 10 additions & 0 deletions
10
src/main/java/com/shopify/exceptions/ShopifyEmptyLineItemsException.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,10 @@ | ||
package com.shopify.exceptions; | ||
|
||
public class ShopifyEmptyLineItemsException extends Exception { | ||
private static final long serialVersionUID = -6803895255030397292L; | ||
|
||
public ShopifyEmptyLineItemsException() { | ||
super("LineItems are required when creating a new fulfillment from a fulfillmentOrder"); | ||
} | ||
|
||
} |
16 changes: 16 additions & 0 deletions
16
src/main/java/com/shopify/exceptions/ShopifyIncompatibleApiException.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,16 @@ | ||
package com.shopify.exceptions; | ||
|
||
public class ShopifyIncompatibleApiException extends RuntimeException { | ||
|
||
private static final String defaultMessage = "This action cannot be done in the current ShopifyApi version"; | ||
private static final long serialVersionUID = 147838161361971621L; | ||
|
||
public ShopifyIncompatibleApiException() { | ||
super(defaultMessage); | ||
} | ||
|
||
public ShopifyIncompatibleApiException(final Throwable throwable) { | ||
super(defaultMessage, throwable); | ||
} | ||
|
||
} |
Oops, something went wrong.