PageRenderTime 43ms CodeModel.GetById 18ms RepoModel.GetById 1ms app.codeStats 0ms

/MalApi/MalApiException.cs

https://bitbucket.org/LHCGreg/mal-api
C# | 38 lines | 18 code | 2 blank | 18 comment | 0 complexity | dbb4975980b087875b22d15eb167704a MD5 | raw file
Possible License(s): Apache-2.0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace MalApi
  6. {
  7. /// <summary>
  8. /// Generic exception for errors
  9. /// </summary>
  10. [Serializable]
  11. public class MalApiException : Exception
  12. {
  13. public MalApiException() { }
  14. public MalApiException(string message) : base(message) { }
  15. public MalApiException(string message, Exception inner) : base(message, inner) { }
  16. protected MalApiException(
  17. System.Runtime.Serialization.SerializationInfo info,
  18. System.Runtime.Serialization.StreamingContext context)
  19. : base(info, context) { }
  20. }
  21. }
  22. /*
  23. Copyright 2011 Greg Najda
  24. Licensed under the Apache License, Version 2.0 (the "License");
  25. you may not use this file except in compliance with the License.
  26. You may obtain a copy of the License at
  27. http://www.apache.org/licenses/LICENSE-2.0
  28. Unless required by applicable law or agreed to in writing, software
  29. distributed under the License is distributed on an "AS IS" BASIS,
  30. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  31. See the License for the specific language governing permissions and
  32. limitations under the License.
  33. */