Skip to content

Commit 0c4ebd4

Browse files
committed
feat: add business exceptions
1 parent 4454823 commit 0c4ebd4

File tree

5 files changed

+35
-0
lines changed

5 files changed

+35
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package br.com.catalog.exceptions.business_exceptions;
2+
3+
public class BrandAlreadyExistsException extends RuntimeException {
4+
public BrandAlreadyExistsException(String message) {
5+
super(message);
6+
}
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package br.com.catalog.exceptions.business_exceptions;
2+
3+
public class IllegalPageSizeException extends RuntimeException {
4+
public IllegalPageSizeException(String message) {
5+
super(message);
6+
}
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package br.com.catalog.exceptions.business_exceptions;
2+
3+
public class InvalidTokenException extends RuntimeException {
4+
public InvalidTokenException(String message, Throwable cause) {
5+
super(message, cause);
6+
}
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package br.com.catalog.exceptions.business_exceptions;
2+
3+
public class ProductAlreadyExistsException extends RuntimeException {
4+
public ProductAlreadyExistsException(String message) {
5+
super(message);
6+
}
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package br.com.catalog.exceptions.business_exceptions;
2+
3+
public class UserAlreadyExistsException extends RuntimeException {
4+
public UserAlreadyExistsException(String message) {
5+
super(message);
6+
}
7+
}

0 commit comments

Comments
 (0)