pull/1738/head
			
			
		
		
							parent
							
								
									c1daabd898
								
							
						
					
					
						commit
						2b4e0637bc
					
				@ -0,0 +1,8 @@ | 
				
			|||||||
 | 
					@file:Suppress("unused") | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					package io.legado.app.exception | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/** | 
				
			||||||
 | 
					 * 并发限制 | 
				
			||||||
 | 
					 */ | 
				
			||||||
 | 
					class ConcurrentException(msg: String, val waitTime: Int) : NoStackTraceException(msg) | 
				
			||||||
@ -0,0 +1,6 @@ | 
				
			|||||||
 | 
					package io.legado.app.exception | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/** | 
				
			||||||
 | 
					 * 内容为空 | 
				
			||||||
 | 
					 */ | 
				
			||||||
 | 
					class ContentEmptyException(msg: String) : NoStackTraceException(msg) | 
				
			||||||
@ -0,0 +1,12 @@ | 
				
			|||||||
 | 
					package io.legado.app.exception | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/** | 
				
			||||||
 | 
					 * 不记录错误堆栈的报错 | 
				
			||||||
 | 
					 */ | 
				
			||||||
 | 
					open class NoStackTraceException(msg: String) : Exception(msg) { | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    override fun fillInStackTrace(): Throwable { | 
				
			||||||
 | 
					        return this | 
				
			||||||
 | 
					    } | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					} | 
				
			||||||
@ -0,0 +1,6 @@ | 
				
			|||||||
 | 
					package io.legado.app.exception | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/** | 
				
			||||||
 | 
					 * 目录为空 | 
				
			||||||
 | 
					 */ | 
				
			||||||
 | 
					class TocEmptyException(msg: String) : NoStackTraceException(msg) | 
				
			||||||
@ -1,29 +0,0 @@ | 
				
			|||||||
@file:Suppress("unused") | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
package io.legado.app.model | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/** | 
					 | 
				
			||||||
 * 不记录错误堆栈的报错 | 
					 | 
				
			||||||
 */ | 
					 | 
				
			||||||
open class NoStackTraceException(msg: String) : Exception(msg) { | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    override fun fillInStackTrace(): Throwable { | 
					 | 
				
			||||||
        return this | 
					 | 
				
			||||||
    } | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
} | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/** | 
					 | 
				
			||||||
 * 目录为空 | 
					 | 
				
			||||||
 */ | 
					 | 
				
			||||||
class TocEmptyException(msg: String) : NoStackTraceException(msg) | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/** | 
					 | 
				
			||||||
 * 内容为空 | 
					 | 
				
			||||||
 */ | 
					 | 
				
			||||||
class ContentEmptyException(msg: String) : NoStackTraceException(msg) | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/** | 
					 | 
				
			||||||
 * 并发限制 | 
					 | 
				
			||||||
 */ | 
					 | 
				
			||||||
class ConcurrentException(msg: String, val waitTime: Int) : NoStackTraceException(msg) | 
					 | 
				
			||||||
					Loading…
					
					
				
		Reference in new issue