Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def builder(ex: ErrorDeserializingProgramOutput): TagMod = {
- div(Styles.danger, key := ex.toString.hashCode,
- ex.eliminate(renderDeserializationError,
- _.eliminate(renderQQRuntimeException,
- _.eliminate(renderQQCompilerException,
- _.eliminate(renderParsingException,
- _.eliminate(renderBase64Exception,
- _.eliminate(renderBytecodeException,
- _.impossible)))))))
- }
- def renderDeserializationError(err: Invalid.Data): TagMod = {
- "Error deserializing output from QQ program: " + err
- }
- def renderBytecodeException(err: InvalidBytecode): TagMod = {
- "Error getting QQ program from cache (bytecode): TagMod: " + err
- }
- def renderBase64Exception(err: InvalidBase64): TagMod = {
- "Error getting QQ program from cache (base64): " + err
- }
- def renderParsingException(err: ParseError): TagMod = {
- "Error parsing QQ program: " + err
- }
- def renderQQCompilerException(err: QQCompilationException): TagMod = {
- "Error compiling QQ program: " + err
- }
- def renderQQRuntimeException(err: QQRuntimeException): TagMod = {
- "Error running QQ program: " + err
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement