<feed xmlns='http://www.w3.org/2005/Atom'>
<title>chouette-core/app/errors, branch 5505-custom_fields</title>
<subtitle>Chouette manage transport static data</subtitle>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/'/>
<entry>
<title>Referential: Raise an error if the table lock times out</title>
<updated>2017-12-12T15:56:49+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2017-12-12T15:56:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=55b995531b2504792dfa1b0314b5cc5b55a775ac'/>
<id>55b995531b2504792dfa1b0314b5cc5b55a775ac</id>
<content type='text'>
Paired with Johan on this one. There's an internal timeout on our table
lock. If it's reached, an
`ActiveRecord::StatementInvalid&lt;PG::LockNotAvailable&gt;` error is raised.
Use a custom error instead by "overriding" `#save` with a method that
raises our custom error in that case instead. This will enable us to
provide a custom user-facing error in the event this happens.

Refs #5024
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Paired with Johan on this one. There's an internal timeout on our table
lock. If it's reached, an
`ActiveRecord::StatementInvalid&lt;PG::LockNotAvailable&gt;` error is raised.
Use a custom error instead by "overriding" `#save` with a method that
raises our custom error in that case instead. This will enable us to
provide a custom user-facing error in the event this happens.

Refs #5024
</pre>
</div>
</content>
</entry>
</feed>
