Sorry for the that, I mean my problem is I put the exception in the wrong part of my program, so everytime I try to call it in the method it does not return the exception, so what i did was:
1. Create an new exception class, which is: FileNotFoundError
Smalltalk.Core defineClass: #FileNotFound
superclass: #{Core.Error}
indexedType: #none
private: false
instanceVariableNames: ''
classInstanceVariableNames: ''
imports: ''
category: ''
2. I use that new exception to raise signal on a FileNotFoundError.
fileNotFound
^FileNotFound raiseSignal: 'The file is not exist'