concept revert in category ethereum

appears as: revert
Building Ethereum Dapps: Decentralized applications on the Ethereum blockchain

This is an excerpt from Manning's book Building Ethereum Dapps: Decentralized applications on the Ethereum blockchain.

contract A2 {
    function () payable  {
        revert();
    }
}

You can also terminate the execution and revert the contract state explicitly by calling revert().

Following the external call, you have two ways to revert the contract state if the call fails. You can use require or revert().