initial commit
This commit is contained in:
22
exception/AlignmentPatternNotFoundException.cs
Normal file
22
exception/AlignmentPatternNotFoundException.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System;
|
||||
namespace ThoughtWorks.QRCode.ExceptionHandler
|
||||
{
|
||||
[Serializable]
|
||||
public class AlignmentPatternNotFoundException:System.ArgumentException
|
||||
{
|
||||
internal String message = null;
|
||||
|
||||
public override String Message
|
||||
{
|
||||
get
|
||||
{
|
||||
return message;
|
||||
}
|
||||
|
||||
}
|
||||
public AlignmentPatternNotFoundException(String message)
|
||||
{
|
||||
this.message = message;
|
||||
}
|
||||
}
|
||||
}
|
||||
35
exception/DecodingFailedException.cs
Normal file
35
exception/DecodingFailedException.cs
Normal file
@@ -0,0 +1,35 @@
|
||||
using System;
|
||||
namespace ThoughtWorks.QRCode.ExceptionHandler
|
||||
{
|
||||
|
||||
// Possible Exceptions
|
||||
//
|
||||
//DecodingFailedException
|
||||
//- SymbolNotFoundException
|
||||
// - FinderPatternNotFoundException
|
||||
// - AlignmentPatternNotFoundException
|
||||
//- SymbolDataErrorException
|
||||
// - IllegalDataBlockException
|
||||
// - InvalidVersionInfoException
|
||||
//- UnsupportedVersionException
|
||||
|
||||
[Serializable]
|
||||
public class DecodingFailedException:System.ArgumentException
|
||||
{
|
||||
internal String message = null;
|
||||
|
||||
public override String Message
|
||||
{
|
||||
get
|
||||
{
|
||||
return message;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public DecodingFailedException(String message)
|
||||
{
|
||||
this.message = message;
|
||||
}
|
||||
}
|
||||
}
|
||||
21
exception/FinderPatternNotFoundException.cs
Normal file
21
exception/FinderPatternNotFoundException.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
namespace ThoughtWorks.QRCode.ExceptionHandler
|
||||
{
|
||||
[Serializable]
|
||||
public class FinderPatternNotFoundException:System.Exception
|
||||
{
|
||||
internal String message = null;
|
||||
public override String Message
|
||||
{
|
||||
get
|
||||
{
|
||||
return message;
|
||||
}
|
||||
|
||||
}
|
||||
public FinderPatternNotFoundException(String message)
|
||||
{
|
||||
this.message = message;
|
||||
}
|
||||
}
|
||||
}
|
||||
23
exception/InvalidDataBlockException.cs
Normal file
23
exception/InvalidDataBlockException.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
namespace ThoughtWorks.QRCode.ExceptionHandler
|
||||
{
|
||||
[Serializable]
|
||||
public class InvalidDataBlockException:System.ArgumentException
|
||||
{
|
||||
internal String message = null;
|
||||
|
||||
public override String Message
|
||||
{
|
||||
get
|
||||
{
|
||||
return message;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public InvalidDataBlockException(String message)
|
||||
{
|
||||
this.message = message;
|
||||
}
|
||||
}
|
||||
}
|
||||
22
exception/InvalidVersionException.cs
Normal file
22
exception/InvalidVersionException.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System;
|
||||
namespace ThoughtWorks.QRCode.ExceptionHandler
|
||||
{
|
||||
[Serializable]
|
||||
public class InvalidVersionException:VersionInformationException
|
||||
{
|
||||
internal String message;
|
||||
public override String Message
|
||||
{
|
||||
get
|
||||
{
|
||||
return message;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public InvalidVersionException(String message)
|
||||
{
|
||||
this.message = message;
|
||||
}
|
||||
}
|
||||
}
|
||||
22
exception/InvalidVersionInfoException.cs
Normal file
22
exception/InvalidVersionInfoException.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System;
|
||||
namespace ThoughtWorks.QRCode.ExceptionHandler
|
||||
{
|
||||
[Serializable]
|
||||
public class InvalidVersionInfoException:VersionInformationException
|
||||
{
|
||||
internal String message = null;
|
||||
public override String Message
|
||||
{
|
||||
get
|
||||
{
|
||||
return message;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public InvalidVersionInfoException(String message)
|
||||
{
|
||||
this.message = message;
|
||||
}
|
||||
}
|
||||
}
|
||||
23
exception/SymbolNotFoundException.cs
Normal file
23
exception/SymbolNotFoundException.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
namespace ThoughtWorks.QRCode.ExceptionHandler
|
||||
{
|
||||
[Serializable]
|
||||
public class SymbolNotFoundException:System.ArgumentException
|
||||
{
|
||||
internal String message = null;
|
||||
|
||||
public override String Message
|
||||
{
|
||||
get
|
||||
{
|
||||
return message;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public SymbolNotFoundException(String message)
|
||||
{
|
||||
this.message = message;
|
||||
}
|
||||
}
|
||||
}
|
||||
8
exception/VersionInformationException.cs
Normal file
8
exception/VersionInformationException.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
using System;
|
||||
namespace ThoughtWorks.QRCode.ExceptionHandler
|
||||
{
|
||||
[Serializable]
|
||||
public class VersionInformationException:System.ArgumentException
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user