Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix copyrights
  • Loading branch information
Shamar committed Jan 1, 2013
1 parent e6a255e commit 6eb595b
Show file tree
Hide file tree
Showing 273 changed files with 16,047 additions and 16,047 deletions.
Expand Up @@ -4,7 +4,7 @@
// Author:
// Giacomo Tesio <giacomo@tesio.it>
//
// Copyright (c) 2010-2012 Giacomo Tesio
// Copyright (c) 2010-2013 Giacomo Tesio
//
// This file is part of Epic.NET.
//
Expand Down
Expand Up @@ -4,7 +4,7 @@
// Author:
// Giacomo Tesio <giacomo@tesio.it>
//
// Copyright (c) 2010-2012 Giacomo Tesio
// Copyright (c) 2010-2013 Giacomo Tesio
//
// This file is part of Epic.NET.
//
Expand Down
Expand Up @@ -4,7 +4,7 @@
// Author:
// Giacomo Tesio <giacomo@tesio.it>
//
// Copyright (c) 2010-2012 Giacomo Tesio
// Copyright (c) 2010-2013 Giacomo Tesio
//
// This file is part of Epic.NET.
//
Expand Down
@@ -1,63 +1,63 @@
//
// AlreadyClaimedException.cs
//
// Author:
// Giacomo Tesio <giacomo@tesio.it>
//
// Copyright (c) 2010-2012 Giacomo Tesio
//
// This file is part of Epic.NET.
//
// Epic.NET is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Epic.NET is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
using System;

namespace Challenge00.DDDSample.Cargo
{
/// <summary>
/// Exception thrown when a cargo is already claimed.
/// </summary>
[Serializable]
public sealed class AlreadyClaimedException : InvalidOperationException
{
private readonly TrackingId _cargo;

/// <summary>
/// Initializes a new instance of the <see cref="Challenge00.DDDSample.Cargo.AlreadyClaimedException"/> class.
/// </summary>
/// <param name='cargo'>
/// Cargo.
/// </param>
/// <param name='message'>
/// Message.
/// </param>
public AlreadyClaimedException (TrackingId cargo, string message)
: base(message)
{
_cargo = cargo;
}

/// <summary>
/// Gets the cargo.
/// </summary>
public TrackingId Cargo
{
get
{
return _cargo;
}
}
}
}
//
// AlreadyClaimedException.cs
//
// Author:
// Giacomo Tesio <giacomo@tesio.it>
//
// Copyright (c) 2010-2013 Giacomo Tesio
//
// This file is part of Epic.NET.
//
// Epic.NET is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Epic.NET is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
using System;

namespace Challenge00.DDDSample.Cargo
{
/// <summary>
/// Exception thrown when a cargo is already claimed.
/// </summary>
[Serializable]
public sealed class AlreadyClaimedException : InvalidOperationException
{
private readonly TrackingId _cargo;

/// <summary>
/// Initializes a new instance of the <see cref="Challenge00.DDDSample.Cargo.AlreadyClaimedException"/> class.
/// </summary>
/// <param name='cargo'>
/// Cargo.
/// </param>
/// <param name='message'>
/// Message.
/// </param>
public AlreadyClaimedException (TrackingId cargo, string message)
: base(message)
{
_cargo = cargo;
}

/// <summary>
/// Gets the cargo.
/// </summary>
public TrackingId Cargo
{
get
{
return _cargo;
}
}
}
}

@@ -1,81 +1,81 @@
//
// RoutingException.cs
//
// Author:
// Giacomo Tesio <giacomo@tesio.it>
//
// Copyright (c) 2010-2012 Giacomo Tesio
//
// This file is part of Epic.NET.
//
// Epic.NET is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Epic.NET is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
using System;

namespace Challenge00.DDDSample.Cargo
{
/// <summary>
/// Routing exception.
/// </summary>
[Serializable]
public sealed class RoutingException : InvalidOperationException
{
private readonly TrackingId _cargo;
private readonly RoutingStatus _status;

private static string BuildMessage(TrackingId cargo, RoutingStatus status)
{
return string.Format("Cannot perform the requested operation becouse the routing status of the cargo {0} is {1}.", cargo, status);
}

/// <summary>
/// Initializes a new instance of the <see cref="Challenge00.DDDSample.Cargo.RoutingException"/> class.
/// </summary>
/// <param name='cargo'>
/// Cargo.
/// </param>
/// <param name='status'>
/// Status.
/// </param>
public RoutingException (TrackingId cargo, RoutingStatus status)
: base(BuildMessage(cargo, status))
{
_cargo = cargo;
_status = status;
}

/// <summary>
/// Gets the cargo.
/// </summary>
public TrackingId Cargo
{
get
{
return _cargo;
}
}

/// <summary>
/// Gets the routing status.
/// </summary>
public RoutingStatus RoutingStatus
{
get
{
return _status;
}
}
}
}
//
// RoutingException.cs
//
// Author:
// Giacomo Tesio <giacomo@tesio.it>
//
// Copyright (c) 2010-2013 Giacomo Tesio
//
// This file is part of Epic.NET.
//
// Epic.NET is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Epic.NET is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
using System;

namespace Challenge00.DDDSample.Cargo
{
/// <summary>
/// Routing exception.
/// </summary>
[Serializable]
public sealed class RoutingException : InvalidOperationException
{
private readonly TrackingId _cargo;
private readonly RoutingStatus _status;

private static string BuildMessage(TrackingId cargo, RoutingStatus status)
{
return string.Format("Cannot perform the requested operation becouse the routing status of the cargo {0} is {1}.", cargo, status);
}

/// <summary>
/// Initializes a new instance of the <see cref="Challenge00.DDDSample.Cargo.RoutingException"/> class.
/// </summary>
/// <param name='cargo'>
/// Cargo.
/// </param>
/// <param name='status'>
/// Status.
/// </param>
public RoutingException (TrackingId cargo, RoutingStatus status)
: base(BuildMessage(cargo, status))
{
_cargo = cargo;
_status = status;
}

/// <summary>
/// Gets the cargo.
/// </summary>
public TrackingId Cargo
{
get
{
return _cargo;
}
}

/// <summary>
/// Gets the routing status.
/// </summary>
public RoutingStatus RoutingStatus
{
get
{
return _status;
}
}
}
}

0 comments on commit 6eb595b

Please sign in to comment.