Displaying 20 results from an estimated 10000 matches similar to: "class ActiveRecordError < Exception"
2008 Aug 25
2
to catch exception from update_attribute
Hi
begin
ActiveRecord::Base.transaction do
pb_status_history = ProblemStatusHistory.new
pb_status_history.problem_id = @problem.id
pb_status_history.problem_status_id =
@problem.problem_status_id
pb_status_history.save!
ret_val=@problem.update_attribute("problem_status_id",''ab'')
if ret_val==false
2004 Oct 25
1
Rails 0.8: Just shy of 100 additions, changes, tweaks, and fixes!
It''s been fifty days since our last confession, so it''s no wonder that
this outpouring is by far the biggest yet in Rails history. It''s
absolutely packed with goodies ranging from a whole new framework for
sending email to the smallest new alias for an existing method. In
total we''re just shy of 100 additions, changes, tweaks, and fixes.
This is also
2011 May 22
6
How to capture correctly a specific exception
I a using delayed_job, and I am raising an exception this way :
config/initializers/custom_exceptions.rb
class RemoteLockerException < StandardError; end
class RemoteLockerDenied < StandardError; end
lib/instruction_request_job.rb
class InstructionRequestJob < Struct.new(:style, :request_id)
def perform
....
> connector =
2006 Jun 23
1
Can not rescue ferret exception. What is wrong?
Hi,
I have a big index and wildcard query raises an exception. That is all
right. The problem is I can not rescue this exception and it bombs right
to user page. Why?
I am on Linux. Ferret 0.9.3 with C extentions.
>> class A
>> def self.b
>> Book.index.search(''isbn:00*'')
>> rescue
>> puts ''ok''
>> end
>> end
=>
2009 Aug 18
2
(no subject)
Dear all,
I have a problem with the function read.xls from the gdata package, error message see below. Two examples:
First, I try to read my data, which does not work;
Secondly, I tried the example code/data with the Iris data, which worked
Any idea?
Thanks,
Lars
> path<-"I:/subProjects/bh/HPGD/"
>
> setwd(path)
>
> xls <- "Platten_Liste_090421.xls"
2005 Dec 16
1
Exception Locations?
I am trying to locate the following in the current 1.0 source tree:
ActiveRecord::RecordNotFound
ActionController::UnknownAction
Looking at the API docs, I''ve been unable to track these down.
Can someone help?
1999 Sep 22
0
SV: SAMBA digest 2210
Hi there,
When I compile, install and run Samba 2.0.5a on an AIX 4.3.2 box it won't
really start. The log files of both smd and nmbd complains about fcntl
locking on the .pid files failing. Can this has to do with the problem you
had spotted? How would I get past it you think?
Regards,
/Peter
--
Peter Str?mberg, e-mail: peter.stromberg@scania.se
WM-Data Scania, J?rnagatan 41-49, 15127
2010 Jul 26
2
Exception Pages when behind a proxy
I am not sure if this desired feature or not but when we are behind a
local proxy ie. Nginx/Varnish then the new ShowException middleware
doesn''t seem to properly detect the remote IP address and it appears
as if every browser gets a local error page with a stack trace, etc.
I''ve opened up a ticket on the rails bug tracker but I also would like
to verify that this is in fact a
2018 Dec 31
2
--partial does not "unhide" the files
Kevin Korb via rsync <rsync at lists.samba.org> (So 30 Dez 2018 23:56:44 CET):
> I think --partial might be a red herring here. It only applies to what
> happens when rsync is aborted in the middle of a file. What happens
> without -P?
Same happens w/o --partial. I append 2 logs:
- a from localhost to remote server, exposing the missing "rename"
- b from localhost to
2018 Dec 30
0
--partial does not "unhide" the files
I think --partial might be a red herring here. It only applies to what
happens when rsync is aborted in the middle of a file. What happens
without -P?
Also, it is worth trying with --inplace.
On 12/30/18 5:32 PM, Heiko Schlittermann via rsync wrote:
> Hi,
>
> I used --partial to transfer files from my local computer (rsync 3.1.2,
> Debian) to a remote computer (rsync 3.1.1 WD
1999 Aug 23
1
2.0.5a configure bug fcntl test on automounted source dir
Hello,
I believe that I have found a bug in the 2.0.5a configure process. If
the source tarball is extracted to an automounted directory, and you
run configure, it will fail the fcntl_lock test, resulting in this
message at the end of the configure process:
WARNING: No locking available. Running Samba would be unsafe
To verify that the automounted directory is the problem, I put an
"exit
1999 Feb 05
0
suggestion for SWAT README and man page
Hello,
In 2.0.0, neither the SWAT README nor the man page mentions that nmbd
(or is it smbd) must be running on the server for SWAT to work.
--
Tom Schutter (mailto:tom@platte.com)
Platte River Associates, Inc. (http://www.platte.com)
BLOWN UP BY EIGHT BROKEN IRC SERVERS. SINKING. U-301.
2008 Jan 22
0
Trying to spec ExceptionNotifiable behavior
Hello List.
I''m trying to overwrite part of ExceptionNotifiable
(ExceptionNotification plugin) to render customized error 500 pages
based on browser agents.
For this, I''ve created a fake controller that inherits directly from
ActionController::Base:
class FooExceptionController < ActionController::Base
include ExceptionNotifiable
# this action should not fail, used for
2006 Mar 06
6
Executing SQL in rails, and the types of the data returned
Hi,
Every once in while I have to run SQL by hand, in my models mostly. But
I''m wondering if there is a better way of doing it than I do. And, I
have a question concerning types of the fields in the result the query
produces.
First, about the types. In a certain model, to get and return the value
of a boolean function, I have to do:
result =
2018 Dec 30
2
--partial does not "unhide" the files
Hi,
I used --partial to transfer files from my local computer (rsync 3.1.2,
Debian) to a remote computer (rsync 3.1.1 WD MyPassport Storage device)
The files get transferred, but after successful transfer, the files
are not renamed from .<tmpfile> to <file>.
Where to go next?
Here is the verbose output after transferring an empty file
heiko at blade:~/Pictures$ rsync
2018 Dec 31
0
--partial does not "unhide" the files
I can't say I have any idea why rsync would just skip that step and I
can't duplicate it myself.
Your only recourse might be to use --inplace on that system.
On 12/31/18 12:33 PM, Heiko Schlittermann via rsync wrote:
> Kevin Korb via rsync <rsync at lists.samba.org> (So 30 Dez 2018 23:56:44 CET):
>> I think --partial might be a red herring here. It only applies to what
2007 Jun 27
5
Filter Ordering in Edge Rails (Rev 7143)
Filter chaining appears to behave in differently than Rails 1.2.x. It
seems that I''m getting a lot of errors along the lines of:
ActionController::ActionControllerError: filter
#<ActionController::Filters::ClassMethods::BeforeFilterProxy:0x322f468
@filter=#<ActionController::Filters::ClassMethods::SymbolFilter:
0x322f4b8 @filter=:login_required>> was in the wrong place!
2011 Aug 02
0
[LLVMdev] RFC: Exception Handling Rewrite
On Aug 1, 2011, at 11:13 PM, Bill Wendling wrote:
>>> The 'landingpad' instruction replaces the current 'llvm.eh.exception' and
>>> 'llvm.eh.selector' intrinsics.
>>>
>>> // Syntax:
>>>
>>> %res = landingpad<somety> personality<ty> <pers_fn> <clause>+
>>>
>>> where
2011 Aug 02
0
[LLVMdev] RFC: Exception Handling Rewrite
On Aug 2, 2011, at 10:28 AM, Duncan Sands wrote:
>>>> Is it intended that "cleanup ty_1, ty_2" potentially be different to
>>>> "cleanup ty_1 cleanup ty_2"? Perhaps this is useful for funky personality
>>>> functions.
>>>>
>>> Yeah. One can basically interleave the catches and filters. But having two catch or two filter
2006 Aug 02
2
too many clauses exception
hey..
i get this error quite regularly, what exactly dies it mean?
: Error occured at <q_prefix.c>:54
Error: exception 6 not handled: Too many clauses
am i adding to many clauses in the query statement?
Ben