The 1C:Enterprise developers forum

#1
People who like this: 0 Yes / 0 No
Active user
Rating: 2
Joined: Jul 18, 2012
Company: Bristol IT Solutions, LLC

I'm using Try...Catch to handle errors that occure during the transaction. But it still rolls back.

 
#2
People who like this: 0 Yes / 0 No
Timofey Bugaevsky
Guest

Joined:
Company:

This is the correct behavior if an operation with database is performed and an exception is catched within Try, it still causes a rollback.
You will see "Errors have already occurred in this transaction!" message as for not catched exception. At the same time if non database-related exception occured, it can be catched and will not cause a rollback.

 
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)
Be the first to know tips & tricks on business application development!

A confirmation e-mail has been sent to the e-mail address you provided .

Click the link in the e-mail to confirm and activate the subscription.

/* Фикс размеров заголовков в контенте документации */ .content h3, .content h4, .content h5, #content h3, #content h4, #content h5 { color: #222 !important; font-weight: bold !important; text-transform: none !important; /* Убираем принудительные капсы, если есть */ margin-top: 25px !important; margin-bottom: 10px !important; display: block !important; } .content h3, #content h3 { font-size: 20px !important; } /* Был мелким */ .content h4, #content h4 { font-size: 18px !important; } /* Был очень мелким */ .content h5, #content h5 { font-size: 16px !important; } /* Был как микро-текст */ /* Добавляем отступ сверху, чтобы заголовок не прилипал к предыдущему абзацу */ .content p + h3, .content p + h4 { margin-top: 30px !important; }