Commit 8f0d812e authored by Camil Staps's avatar Camil Staps 🚀

Add QueryTooLong error; update LICENSE

parent b1cf075d
......@@ -250,6 +250,7 @@ from Text.JSON import generic JSONEncode, generic JSONDecode, :: JSONNode
| IllegalRequest //* Incorrect parameters to the API
| ServerTimeout //* Connection to the Cloogle backend timed out
| DosProtection //* Too many requests from this client, try again later
| QueryTooLong //* The query was too long
/* Wildcard to make fromInt total */
| OtherCloogleError String //* Another Cloogle error
......
......@@ -34,6 +34,12 @@ where
toInt InvalidInput = 128
toInt InvalidName = 129
toInt InvalidType = 130
toInt ServerDown = 150
toInt IllegalMethod = 151
toInt IllegalRequest = 152
toInt ServerTimeout = 153
toInt DosProtection = 154
toInt QueryTooLong = 155
toInt (OtherCloogleError _) = -1
instance fromInt CloogleError
......@@ -47,6 +53,7 @@ where
fromInt 152 = IllegalRequest
fromInt 153 = ServerTimeout
fromInt 154 = DosProtection
fromInt 155 = QueryTooLong
fromInt i = OtherCloogleError ("Unknown CloogleError " + toString i)
instance zero Request
......
The MIT License (MIT)
Copyright (c) <2016> <Mart Lubbers and Camil Staps>
Copyright (c) 2016-present Mart Lubbers and Camil Staps
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
......
......@@ -9,8 +9,8 @@ These types can be used to easily access the TCP and HTTP APIs at
using the generic JSON functions on these types.
## Copyright &amp; License
Copyright &copy; Mart Lubbers and Camil Staps.
Licensed under MIT; See the `LICENSE` file.
Copyright &copy; 2016-present Mart Lubbers and Camil Staps.
Licensed under MIT; See the [LICENSE](/LICENSE) file.
[Clean]: http://clean.cs.ru.nl
[Cloogle]: https://cloogle.org
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment