Is there a possibility to change a state variable and then throw an error, so that the state is maintained. e.g.:
uint minAmount = 1 ether;
uint state;
function payDeposit() payable {
if(msg.value < minAmount ) {
state = 2;
throw;
}
state = 1;
}
In the example above, the state variable is not set. Is there any way to solve this problem?