Skip to content

Commit

Permalink
assertはせずにUnsupportedOperationExceptionを発する
Browse files Browse the repository at this point in the history
  • Loading branch information
qryxip committed Oct 20, 2023
1 parent 38f277d commit 0098be9
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,9 @@ public class ModelNotFoundException extends IndexOutOfBoundsException {
public ModelNotFoundException(String message) {
super(message);
}

public ModelNotFoundException(String message, Throwable cause)
throws UnsupportedOperationException {
throw new UnsupportedOperationException();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,9 @@ public class StyleNotFoundException extends IndexOutOfBoundsException {
public StyleNotFoundException(String message) {
super(message);
}

public StyleNotFoundException(String message, Throwable cause)
throws UnsupportedOperationException {
throw new UnsupportedOperationException();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,9 @@ public class WordNotFoundException extends IndexOutOfBoundsException {
public WordNotFoundException(String message) {
super(message);
}

public WordNotFoundException(String message, Throwable cause)
throws UnsupportedOperationException {
throw new UnsupportedOperationException();
}
}
3 changes: 0 additions & 3 deletions crates/voicevox_core_java_api/src/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,6 @@ where
InvalidWord,
);

// FIXME
assert!(!class.ends_with("NotFoundException") || error.source().is_none());

let mut sources =
iter::successors(error.source(), |&source| source.source())
.collect::<Vec<_>>()
Expand Down

0 comments on commit 0098be9

Please sign in to comment.