Skip to content

Commit 6b8714a

Browse files
author
lorenzo
committed
code
1 parent fa4e268 commit 6b8714a

File tree

7 files changed

+15
-15
lines changed

7 files changed

+15
-15
lines changed

src/main/java/com/reedelk/file/component/FileWrite.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import com.reedelk.runtime.api.component.OnResult;
99
import com.reedelk.runtime.api.component.ProcessorAsync;
1010
import com.reedelk.runtime.api.converter.ConverterService;
11-
import com.reedelk.runtime.api.exception.ESBException;
11+
import com.reedelk.runtime.api.exception.PlatformException;
1212
import com.reedelk.runtime.api.flow.FlowContext;
1313
import com.reedelk.runtime.api.message.Message;
1414
import com.reedelk.runtime.api.message.content.TypedPublisher;
@@ -102,7 +102,7 @@ public void apply(FlowContext flowContext, Message message, OnResult callback) {
102102
}
103103

104104
} else {
105-
callback.onError(flowContext, new ESBException("Could not write file"));
105+
callback.onError(flowContext, new PlatformException("Could not write file"));
106106
}
107107
}
108108

src/main/java/com/reedelk/file/internal/commons/RetryCommand.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import com.reedelk.file.internal.commons.Messages.Misc;
44
import com.reedelk.file.internal.exception.MaxRetriesExceeded;
5-
import com.reedelk.runtime.api.exception.ESBException;
5+
import com.reedelk.runtime.api.exception.PlatformException;
66

77
import java.util.function.Supplier;
88

@@ -55,7 +55,7 @@ private void retry() {
5555

5656
} catch (InterruptedException exception) {
5757

58-
throw new ESBException(exception);
58+
throw new PlatformException(exception);
5959

6060
} catch (Exception exception) {
6161

@@ -73,7 +73,7 @@ private void retry() {
7373

7474
} else {
7575

76-
throw new ESBException(exception);
76+
throw new PlatformException(exception);
7777

7878
}
7979
}

src/main/java/com/reedelk/file/internal/exception/FileDeleteException.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package com.reedelk.file.internal.exception;
22

3-
import com.reedelk.runtime.api.exception.ESBException;
3+
import com.reedelk.runtime.api.exception.PlatformException;
44

5-
public class FileDeleteException extends ESBException {
5+
public class FileDeleteException extends PlatformException {
66

77
public FileDeleteException(String message, Throwable exception) {
88
super(message, exception);

src/main/java/com/reedelk/file/internal/exception/FileReadException.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package com.reedelk.file.internal.exception;
22

3-
import com.reedelk.runtime.api.exception.ESBException;
3+
import com.reedelk.runtime.api.exception.PlatformException;
44

5-
public class FileReadException extends ESBException {
5+
public class FileReadException extends PlatformException {
66

77
public FileReadException(String message, Throwable exception) {
88
super(message, exception);

src/main/java/com/reedelk/file/internal/exception/FileWriteException.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package com.reedelk.file.internal.exception;
22

3-
import com.reedelk.runtime.api.exception.ESBException;
3+
import com.reedelk.runtime.api.exception.PlatformException;
44

5-
public class FileWriteException extends ESBException {
5+
public class FileWriteException extends PlatformException {
66

77
public FileWriteException(String message, Throwable exception) {
88
super(message, exception);

src/main/java/com/reedelk/file/internal/exception/MaxRetriesExceeded.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package com.reedelk.file.internal.exception;
22

3-
import com.reedelk.runtime.api.exception.ESBException;
3+
import com.reedelk.runtime.api.exception.PlatformException;
44

5-
public class MaxRetriesExceeded extends ESBException {
5+
public class MaxRetriesExceeded extends PlatformException {
66

77
public MaxRetriesExceeded(String message) {
88
super(message);

src/main/java/com/reedelk/file/internal/exception/NotValidFileException.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package com.reedelk.file.internal.exception;
22

3-
import com.reedelk.runtime.api.exception.ESBException;
3+
import com.reedelk.runtime.api.exception.PlatformException;
44

5-
public class NotValidFileException extends ESBException {
5+
public class NotValidFileException extends PlatformException {
66

77
public NotValidFileException(String message) {
88
super(message);

0 commit comments

Comments
 (0)