Este site funciona melhor com JavaScript.
Página inicial
Explorar
Ajuda
Acessar
bubblev
/
cobbzilla-utils
Observar
6
Favorito
0
Fork
0
Código
Issues
0
Pull requests
0
Versões
1
Wiki
Atividade
Ver código fonte
use specialized exception for interrupted sleep
tags/2.0.1
Jonathan Cobb
4 anos atrás
pai
ac68a28f18
commit
1594a1ade1
2 arquivos alterados
com
8 adições
e
1 exclusões
Visão dividida
Opções de diferenças
Mostrar estatísticas
Baixar arquivo de patch
Baixar arquivo de diferenças
+1
-1
src/main/java/org/cobbzilla/util/system/Sleep.java
+7
-0
src/main/java/org/cobbzilla/util/system/SleepInterruptedException.java
+ 1
- 1
src/main/java/org/cobbzilla/util/system/Sleep.java
Ver arquivo
@@ -25,7 +25,7 @@ public class Sleep {
try {
Thread.sleep(millis);
} catch (InterruptedException e) {
throw new
IllegalState
Exception("sleep interrupted (" + reason + ")");
throw new
SleepInterrupted
Exception("sleep interrupted (" + reason + ")");
}
}
+ 7
- 0
src/main/java/org/cobbzilla/util/system/SleepInterruptedException.java
Ver arquivo
@@ -0,0 +1,7 @@
package org.cobbzilla.util.system;
public class SleepInterruptedException extends IllegalStateException {
public SleepInterruptedException(String msg) { super(msg); }
}
Escrever
Pré-visualização
Carregando…
Cancelar
Salvar