журнал (shhh) wrote in changelog,
журнал
shhh
changelog

[ljcom] r12243: LJSUP-12856: Implement Blocking base cla...

Committer: nnikulochkina
LJSUP-12856: Implement Blocking base class
U   trunk/cgi-bin/LJ/Pay/Wallet/Error.pm
Modified: trunk/cgi-bin/LJ/Pay/Wallet/Error.pm
===================================================================
--- trunk/cgi-bin/LJ/Pay/Wallet/Error.pm	2012-07-09 10:59:25 UTC (rev 12242)
+++ trunk/cgi-bin/LJ/Pay/Wallet/Error.pm	2012-07-09 11:05:02 UTC (rev 12243)
@@ -62,7 +62,13 @@
         ERROR_ACC_INSUFFICIENT_FUNDS    => 100,
         ERROR_INVALID_ACCOUNT           => 101,
         ERROR_BLOCKED_EXISTS            => 102,
+        ERROR_ACC_INSUFFICIENT_BLOCKED  => 103,
 
+        # Blocking errors, 200 <= code < 300
+        ERROR_INVALID_BLOCKING          => 200,
+        ERROR_CANNOT_RELEASE_BLOCK      => 201,
+        ERROR_CANNOT_PAY_BLOCK          => 202,
+
     };
 
     our @EXPORT = ();
@@ -242,6 +248,32 @@
 
 Thrown by LJ::Pay::Wallet::Account
 
+=item ERROR_ACC_INSUFFICIENT_BLOCKED
+
+The system found out that it is not possible to write off the specified amount of blocked tokens from this account.
+
+Parameters: need, have (how much tokens are needed, how much the user has).
+
+Thrown by LJ::Pay::Wallet::Blocking
+
+=item ERROR_INVALID_BLOCKING
+
+Cannot load blocking using specified blocking id.
+
+Thrown by LJ::Pay::Wallet::Blocking
+
+=item ERROR_CANNOT_RELEASE_BLOCK
+
+Cannot release block because blocking status is not 'blocked'.
+
+Thrown by LJ::Pay::Wallet::Blocking
+
+=item ERROR_CANNOT_PAY_BLOCK
+
+Cannot pay for blocking because blocking status is not 'blocked'.
+
+Thrown by LJ::Pay::Wallet::Blocking
+
 =back
 
 =cut

Tags: ljcom, nikulochkina, nnikulochkina, pm
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments